RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientBlobStream.Create Constructor

Creates and initializes an instance of TClientBlobStream.

Pascal
constructor Create(Field: TBlobField; Mode: TBlobStreamMode);
C++

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.
 

 

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