RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.CreateBlobStream Method

Creates a blob stream for a Binary large object (BLOB) field in the dataset.

Pascal
function CreateBlobStream(Field: TField; Mode: TBlobStreamMode): TStream; override;
C++
virtual __fastcall TStream CreateBlobStream(TField Field, TBlobStreamMode Mode);

Call CreateBlobStream to obtain a stream for reading and writing the value of the field specified by the Field parameter. 

Field is a string containing the name of the BLOB field in the dataset. It must be an instance of TBlobField or one of its descendants. 

Mode indicates whether the stream will be used for reading the field's value (bmRead), writing the field's value (bmWrite), or both (bmReadWrite). 

CreateBlobStream returns the stream you can use for reading or writing data. 

 

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