Bde.DBTables.TBlobStream.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
constructor public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TBlobStream

Description

Creates an instance of TBlobStream.

Call Create to obtain an instance of TBlobStream for reading from or writing to a specific TBlobField object.

Tip: Different types of dataset use different classes of BLOB streams. It is usually a better idea to call the dataset's CreateBlobStream method than to call the BLOB stream constructor.

Create links the TBlobStream 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). Mode must be one of the following values:



Value Meaning

bmRead

The BLOB stream can read data from the field.

bmWrite

The BLOB stream can replace the data in the field.

bmReadWrite

The BLOB stream can modify the data in the field.



Note:  : A TBlobStream object should always be destroyed before navigating to a new record. Create a new instance of TBlobStream for the new record.

See Also

Code Examples