Data.SqlExpr.TCustomSQLDataSet.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
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TCustomSQLDataSet

Description

Creates a blob stream for a Binary large object (BLOB) field in the dataset.

Call CreateBlobStream to obtain a stream for reading and writing the value of the field specified by the Field parameter.

Field is a string containing the name of the BLOB field in the dataset. It must be an instance of TBlobField or one of its descendants.

Mode indicates whether the stream will be used for reading the field's value (bmRead), writing the field's value (bmWrite), or both (bmReadWrite).

CreateBlobStream returns the stream you can use for reading or writing data.

See Also