FireDAC.Comp.DataSet.TFDBlobStream.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AField: TField; AMode: TBlobStreamMode);

C++

__fastcall TFDBlobStream(Data::Db::TField* AField, Data::Db::TBlobStreamMode AMode);

Properties

Type Visibility Source Unit Parent
constructor public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDBlobStream

Description

Creates a new TFDBlobStream object.

Use the Create constructor to explicitly create a new TFDBlobStream object. 

Specify the AField field to read from / write into the dataset. AMode controls the access mode to the BLOB field value:

Mode 

Description 

bmRead 

Opens the BLOB field for reading. 

bmWrite

Opens the BLOB field for writing. After opening the BLOB field, the value is truncated to zero length. 

bmReadWrite 

Opens the BLOB field for reading and writing. 

To open the BLOB field value in bmWrite or bmReadWrite mode, the dataset must be in dsEdit / dsInsert mode and the field must have ReadOnly = False.  The stream object must be destroyed after usage. If the BLOB field value was opened in bmWrite or bmReadWrite mode, the object must be destroyed before calling the Post method.

See Also