Data.DB.TBlobField.BlobSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property BlobSize: Integer read GetBlobSize;

C++

__property int BlobSize = {read=GetBlobSize, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TBlobField

Description

Indicates the number of bytes of data contained in the blob field on the current record.

Read BlobSize to determine the amount of memory required to store the contents of the BLOB field. We recommend that you use BlobSize instead of the DataSize property.

Note: Unlike the DataSize property, which specifies the size for field data on any record, BlobSize gives the size of the BLOB data for the current record only.

In the Delphi example below, the value of the BlobSize property is displayed in the Caption of a form.

procedure TForm1.Query1AfterScroll(DataSet: TDataSet);
begin
  Caption := 'BLOB size: ' +
  IntToStr(TBlobField(Query1.FieldByName('BITMAP')).BlobSize);
end;

See Also