From RAD Studio API Documentation
Jump to: navigation, search


function CreateBlobStream(Field: TField; Mode: TBlobStreamMode): TStream; override;


virtual System::Classes::TStream* __fastcall CreateBlobStream(Data::Db::TField* Field, Data::Db::TBlobStreamMode Mode);


Type Visibility Source Unit Parent
function public
Datasnap.DBClient TCustomClientDataSet


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

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.

See Also