维基副本镜像

这是 pascal.chat 维基的镜像。编辑、历史记录和登录都在那里。

TDBImage/zh CN

English · Français · Русский · 中文(中国) · 日本語

TDBImage 数据库绑定控件,用来显示数据库中 BLOB 字段中的内容. 在 Data Controls tab 的 Component Palette.

存储

默认情况下, Lazarus 将图形文件以二进制的形式存入数据库中,因此Lazarus可以存储任何图片类型。

Delphi 仅支持 (jpg?),最新版本未知. 最新的 Lazarus版本也允许此种类型存储,而且Lazarus已经尝试根据二进制文件的特性来自动检测图片为何种格式。

样例

在代码示例中. sqlite_mushrooms/image_mushrooms 样例,在目录 examples\database\ 中可以找到

参考资料


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.

版本2,最后由WikiArchive于修改。