Sign in Join
Wiki copytemporary

TDBImage/zh CN: what changed

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

Title: TDBImage/zh CN

OldNewLine
1+**TDBImage** ![](/wiki-images/c/c4/Tdbimage.png) 数据库绑定控件,用来显示数据库中 BLOB 字段中的内容. 在 [[Data Controls tab]] 的 [[Component Palette]].
2+
3+## 存储
4+
5+默认情况下, Lazarus 将图形文件以二进制的形式存入数据库中,因此Lazarus可以存储任何图片类型。
6+
7+Delphi 仅支持 (jpg?),最新版本未知. 最新的 Lazarus版本也允许此种类型存储,而且Lazarus已经尝试根据二进制文件的特性来自动检测图片为何种格式。
8+
9+## 样例
10+
11+在代码示例中. sqlite_mushrooms/image_mushrooms 样例,在目录 examples\database\\ 中可以找到
12+
13+<figure>
14+<img src="mushrooms.png" title="Screen shot" />
15+<figcaption>Screen shot</figcaption>
16+</figure>
17+
18+## 参考资料
19+
20+- [[doc:/lcl/dbctrls/tdbimage.html|TDBImage doc]]
21+
22+---
23+*From the Free Pascal wiki, page "TDBImage/zh CN", as it stood on 2020-05-16 after a change by TyphonFinger, 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