Sign in Join
FPDoc Onlineexperiment

TDataSet.CreateBlobStream function

Member of TDataSetpublicIn unit DB

Create blob stream.

Declaration

pascal
function CreateBlobStream(Field: TField; Mode: TBlobStreamMode)
: TStream; virtual

Arguments

Field

BLOB Field for which data should be fetched/written.

Mode

Mode: read or write.

Function result

Stream with (for) blob data.

Description

CreateBlobStream is not intended for use by application programmers. It creates a stream object which can be used to read or write data from a blob field. Instead, application programmers should use the LoadFromStream and SaveToStream methods when reading and writing data from/to BLOB fields. Which operation must be performed on the stream is indicated in the Mode parameter, and the Field parameter contains the field whose data should be read. The caller is responsible for freeing the stream created by this function.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.