Sign in Join
Wiki copytemporary

TDBImage: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11**TDBImage** ![](/wiki-images/c/c4/Tdbimage.png) 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]].
22
33## Storage
44
55By 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.
66
77Delphi 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.
88
99## Example
1010
1111See e.g. the sqlite_mushrooms/image_mushrooms example program in your Lazarus directory examples\database\\
1212
13-<figure>
14-<img src="mushrooms.png" title="Screen shot" />
15-<figcaption>Screen shot</figcaption>
16-</figure>
13+![](/wiki-images/9/96/Mushrooms.png)
1714
1815## see also
1916
2017- [[doc:/lcl/dbctrls/tdbimage.html|TDBImage doc]]
2118
2219---
2320*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](/wiki-contact).*

Back to history