开发者

How to open PDF/xml which stored in a SQLite file?

How can I open them which开发者_如何学编程 have already stored in SQLite ??


First of all, I think that it is better to store files as files rather than blob fields in SQLite, and to keep their filenames in DB.

But if you want to proceed with blob fields, you should write byte[] from that blob field to a temporary file with FileOutputStream. After that just open that file.


You can't store files in a SQLite Database. You can store links to files in a SQLite database or you can store binary data.

I recommend reading how SQLite works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜