TDBImage
English · Français · Русский · 中文(中国) · 日本語
TDBImage
is a data-bound control that shows images stored in BLOB fields in databases. It is available from the Data Controls tab of the Component Palette.
Storage
By default, Lazarus stores the binary image data preceded by the file extension to define the file type. This allows storing multiple image formats at will.
Delphi only allows a single file format (jpg?). Recent Lazarus versions allow this storage format as well and try to autodetect the image type based on magic data in the beginning of the binary data.
Example
See e.g. the sqlite_mushrooms/image_mushrooms example program in your Lazarus directory examples\database\

see also
From the Free Pascal wiki, page "TDBImage", as it stood on 2017-07-22 after a change by E-ric, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
