TDBImage: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | **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]]. | |
| 2 | 2 | ||
| 3 | 3 | ## Storage | |
| 4 | 4 | ||
| 5 | 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 | 6 | ||
| 7 | 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 | 8 | ||
| 9 | 9 | ## Example | |
| 10 | 10 | ||
| 11 | 11 | See e.g. the sqlite_mushrooms/image_mushrooms example program in your Lazarus directory examples\database\\ | |
| 12 | 12 | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 13 | + |  | |
| 17 | 14 | ||
| 18 | 15 | ## see also | |
| 19 | 16 | ||
| 20 | 17 | - [[doc:/lcl/dbctrls/tdbimage.html|TDBImage doc]] | |
| 21 | 18 | ||
| 22 | 19 | --- | |
| 23 | 20 | *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).* |
