【发布时间】:2011-01-30 07:32:00
【问题描述】:
可能重复:
Reading and writing images to an SQLite DB for iPhone use
如何在 sqlite 中存储 pdf、png 文件。
这样可以存储pdf和png文件吗?
请帮帮我。
如果您有任何想法,请与我分享。
谢谢你,
【问题讨论】:
可能重复:
Reading and writing images to an SQLite DB for iPhone use
如何在 sqlite 中存储 pdf、png 文件。
这样可以存储pdf和png文件吗?
请帮帮我。
如果您有任何想法,请与我分享。
谢谢你,
【问题讨论】:
有一个 BLOB 数据类型,所以我猜你可以:
【讨论】:
您可以将 PDF 或 PNG 文件存储在 BLOB 字段中。
首先创建表
create table Blubber ( PK int primary key , BITSINK blob );
然后使用insert添加数据。
insert into Blubber (PK,BITSINK)
values (1, 'your blob goes here, best to use bind variables though!');
请告诉我们您使用什么语言来获得如何使用绑定变量的建议。
EDIT 刚刚看到这是标记为 iPhone,语言应该是合适的 C 方言(目标 c??)
【讨论】: