Datasnap.DBClient.TClientBlobStream

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TMemoryStreamSystem.Classes.TCustomMemoryStreamSystem.Classes.TStreamSystem.TObjectTClientBlobStream

Delphi

TClientBlobStream = class(TMemoryStream)

C++

class PASCALIMPLEMENTATION TClientBlobStream : public System::Classes::TMemoryStream

Properties

Type Visibility Source Unit Parent
class public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient Datasnap.DBClient

Description

TClientBlobStream lets applications read from or write to BLOB fields in a client dataset.

Use TClientBlobStream to access or modify the value of a Binary Large Object (BLOB) field in a client dataset. BLOB fields are TBlobField objects and descendants of TBlobField such as TGraphicField and TMemoField. BLOB fields in client datasets use client BLOB streams to implement many of their data access properties and methods.

TClientBlobStream allows objects that have no specialized knowledge of how data is stored in a BLOB field to read or write such data by employing the uniform stream interface.

To use a client BLOB stream, create an instance of TClientBlobStream, use the methods of the stream to read or write the data, and then free the BLOB stream. Do not use the same instance of TClientBlobStream to access data from more than one record. Instead, create a new TClientBlobStream object every time you need to read or write BLOB data on a new record.

Note: Explicitly creating a TClientBlobStream instance does not ensure that the current record has fetched its BLOB data. To ensure that the BLOB field contains its data before reading from the BLOB stream, call the client dataset's FetchBlobs method before creating the BLOB stream or use the client dataset's CreateBlobStream method to create the BLOB stream indirectly.

See Also