Difference between revisions of "TDBImage"

From Lazarus wiki
Jump to navigationJump to search
(Created page with "== Overview == TDBImage is a data-bound control that shows images stored in BLOB fields in databases. == Storage == By default, Lazarus stores the binary image data preceded ...")
 
(documentation link)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
 
TDBImage is a data-bound control that shows images stored in BLOB fields in databases.
 
TDBImage is a data-bound control that shows images stored in BLOB fields in databases.
 +
 +
== Documentation ==
 +
Official documentation can be found at:
 +
[[doc:/lcl/dbctrls/tdbimage.html]]
  
 
== Storage ==
 
== Storage ==
Line 6: Line 10:
  
 
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.
 
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.
See: to do: insert/copy/paste stuff from Lazarus 1.2 and 1.4 release notes
+
See also: the documentation and the Lazarus 1.2 and 1.4 release notes.
  
 
== Demonstration ==
 
== Demonstration ==

Revision as of 20:00, 4 September 2014

Overview

TDBImage is a data-bound control that shows images stored in BLOB fields in databases.

Documentation

Official documentation can be found at: doc:/lcl/dbctrls/tdbimage.html

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. See also: the documentation and the Lazarus 1.2 and 1.4 release notes.

Demonstration

See e.g. the sqlite_mushrooms/image_mushrooms example program in your Lazarus directory examples\database\

Screen shot