Icon Read Method

function Read(var Buffer; Count: LongInt): LongInt

Usage

Read transfers up to Count bytes from the BLOB or CLOB column into Buffer, starting in the current position, and then advances the current position by the number of bytes actually transferred. Read returns the number of bytes actually transferred (which may be less than the number requested in Count). Buffer must have at least Count bytes allocated to hold the data that was read from the column.

All the other reading methods of a TEDBBlobStream object (ReadBuffer, ReadComponent) call Read to do their actual reading.

Information Do not call Read when the TEDBBlobStream object was created in bmWrite mode. Also, please remember that if you are using a stream on a CLOB column using a Unicode version of ElevateDB, then the number of characters in the CLOB column will not be equal to the number of bytes in the stream like it is with an ANSI version of ElevateDB.
Image