Datasnap.DBClient.TClientBlobStream.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(Field: TBlobField; Mode: TBlobStreamMode);

C++

__fastcall TClientBlobStream(Data::Db::TBlobField* Field, Data::Db::TBlobStreamMode Mode);

Properties

Type Visibility Source Unit Parent
constructor public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TClientBlobStream

Description

Creates and initializes an instance of TClientBlobStream.

Call Create to obtain an instance of TClientBlobStream for reading from or writing to a specific TBlobField object in a client dataset.

Create links the TClientBlobStream to the field object specified by the Field parameter. Mode specifies whether the BLOB stream will be used to read data (bmRead), write data (bmWrite) or modify data (bmReadWrite).

Tip: Because Client datasets sometimes fetch BLOB data on demand, it is a good idea to use the Client dataset's CreateBlobStream method rather than calling the Client BLOB stream's constructor. CreateBlobStream ensures that BLOB data is fetched for the current record unless the FetchOnDemand property is false.

See Also