Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
TABSBlobStream.Read
TABSBlobStream
Top 


Reads up to Count bytes from the current position in the field's data into Buffer.

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

Description
Call Read to read data from the BLOB field when the number of bytes in the field's data is unknown.

Buffer is the target container for Read and must be of type PChar (or equivalent). Buffer must have at least Count bytes allocated to hold the data that was read from the field. Read transfers up to Count bytes from the BLOB data into Buffer, starting at 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).

Read checks the Transliterate property of the field, and converts the data into ANSI from the character set specified by the dataset if Transliterate is True.

All the other data-reading methods of a BLOB stream (ReadBuffer, ReadComponent) call Read to do their actual reading.

Note:   Do not call Read when the TABSBlobStream was created in bmWrite mode.
        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Apr 23, 2024