插入图片源码 [英] insert image sqlite
本文介绍了插入图片源码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些照片,我想它存储在sqlite的
i have some pictures and i want to store it in sqlite
我需要做的。
推荐答案
有两种看法
- 将它们放在一个目录中,然后存储在文本字段中的路径
- 存储图像数据的BLOB字段
如果数据库非常大,图像也一样,那么文件系统的方式是更好的性能。
If the database is very large and the images are too, then the file system way is more performant.
如果你只是想要的东西做快,使用一个blob。这没关系,但不能扩展为好。
If you just want something done quick, use a blob. It's ok, but doesn't scale as well.
这篇关于插入图片源码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文