Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.BlobFieldToPicture Method

Decodes the image stored in a blob field and loads it into a bitmap.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCCustomDataGridDatabaseAdapter

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
class procedure BlobFieldToPicture(AField: TBlobField; ABitmap: TTMSFNCBitmap);
__classmethod void __fastcall BlobFieldToPicture(Data::Db::TBlobField* AField, TTMSFNCBitmap* ABitmap);

Remarks

Recognizes the graphic header written by Delphi's TGraphicField and images wrapped in an OLE container (BMP, JPEG, and GIF signatures), and skips those wrappers before loading. In web applications the field value is treated as an image URL instead. The bitmap is left unchanged when the data cannot be recognized.

Parameters

Name Description
AField Blob field of the current record that holds the image. Nothing happens when it is nil or has no dataset.
ABitmap Bitmap that receives the image. The caller owns it.