DicomObjects Reference
DicomObjects Reference / DicomImages Collection / ReadField Method

The field from which the image is to be read.
This must be from the list of supported interfaces below, and must be of a type capable of holding binary objects. In Microsoft Access, this would be either an OLE or Memo field. The supported object types are:

Object Category Version Object Type
ActiveX Data Objects ADO >=1.5 Field
Data Access Objects DAO 3.0 or 3.5 Field
Remote Data Objects RDO 2.0 Column

In This Topic
    ReadField Method
    In This Topic
    Description
    Reads a DICOM image from a database field
    Syntax
    Visual Basic
    Public Function ReadField( _
       ByVal Field As Object _
    ) As DicomImage
    Parameters
    Field

    The field from which the image is to be read.
    This must be from the list of supported interfaces below, and must be of a type capable of holding binary objects. In Microsoft Access, this would be either an OLE or Memo field. The supported object types are:

    Object Category Version Object Type
    ActiveX Data Objects ADO >=1.5 Field
    Data Access Objects DAO 3.0 or 3.5 Field
    Remote Data Objects RDO 2.0 Column

    Remarks

    This method can read fields in either the official “Part10” format with the 128 byte header, or the unofficial “Part3” format without a header, and detection of the type is automatic.

    The field would normally have been written by the WriteField method, but may have been imported into the field from an external file.

    This method has been provided to allow development of a simple DICOM server using Microsoft Access, which has limited facilities for the handling of Binary Large Objects (BLOBs).

    Whilst this method is useful for simple demonstrations and small projects, most database servers do not handle large BLOBs well when stored within the main database, and in a “production” environment, storage in simple files is strongly advised (with storage of just the filename within the database).

    See Also