RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.CreateBlobStream Method

Returns a TClientBlobStream object for reading or writing the data in a specified blob field.

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 data from or writing data to a binary large object (BLOB) field. The Field parameter must specify a TBlobField component from the Fields property array. The Mode parameter specifies whether the stream will be used for reading, writing, or updating the contents of the field.

Note: Calling CreateBlobStream ensures that the current record has fetched its BLOB data if the FetchOnDemand property is true. If FetchOnDemand is false and the provider does not include BLOB data in data packets by default, call FetchBlobs before calling CreateBlobStream.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!