Icon TDBISAMBlobStream

Unit: dbisamtb

Inherits From TStream

Use the TDBISAMBlobStream object to access or modify the contents of a BLOB field in a dataset using a stream interface. BLOB fields include TBlobField objects and descendants of TBlobField such as TGraphicField and TMemoField objects. TBlobField objects use streams to implement many of their data access properties and methods via the standard CreateBlobStream method that is implemented by the DBISAM dataset components.

To use a TDBISAMBlobStream object, create an instance of TDBISAMBlobStream, use the methods of the TDBISAMBlobStream object to read or write the data, and then free the object. Do not use the same instance of a TDBISAMBlobStream object to access data from more than one record. Instead, create a new TDBISAMBlobStream object every time you need to read or write BLOB data for a record.

Information For proper results when updating a BLOB field using a TDBISAMBlobStream object, you must create the TDBISAMBlobStream object after calling the Append/Insert or Edit method for the dataset containing the BLOB field. Also, you must free the TDBISAMBlobStream object before calling the Post method to post the changes to the dataset. Finally, be sure to use the proper open mode when creating a TDBISAMBlobStream object for updating (either bmReadWrite or bmWrite).


PropertiesMethodsEvents
Create
Read
Seek
Truncate
Write
Image