Sign in Join
Wiki copytemporary

TDBImage: what changed

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

Title: TDBImage

OldNewLine
1+**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]].
2+
3+## Storage
4+
5+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.
6+
7+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.
8+
9+## Example
10+
11+See e.g. the sqlite_mushrooms/image_mushrooms example program in your Lazarus directory examples\database\\
12+
13+<figure>
14+<img src="mushrooms.png" title="Screen shot" />
15+<figcaption>Screen shot</figcaption>
16+</figure>
17+
18+## see also
19+
20+- [[doc:/lcl/dbctrls/tdbimage.html|TDBImage doc]]
21+
22+---
23+*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