RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLBlobStream.ReadBlobData Method

Fills the BLOB stream's memory buffer with the contents of the associated BLOB field.

Pascal
procedure ReadBlobData;
C++
__fastcall ReadBlobData();

Call ReadBlobData to refresh the contents of the BLOB stream when the current record in the dataset changes. ReadBlobData reads the contents of a BLOB field into the SQL BLOB stream's in-memory buffer and sets the Size property to the number of bytes of BLOB data. It then sets Position to 0 so that the stream is ready for you to read the BLOB data.

Note: It is not necessary to call ReadBlobData when you first create a SQL BLOB stream, because the constructor already performs this task. You need only call ReadBlobData when the current record changes, so that the stream reflects the BLOB data for the new record.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!