Datasnap.DBClient.TCustomClientDataSet.CreateBlobStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

Description

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