什么是Android中最好的做法图像存储在SD卡或SQL精简版数据库? [英] what is the best practice store images in android in SD card or in SQL lite DB?

查看:114
本文介绍了什么是Android中最好的做法图像存储在SD卡或SQL精简版数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要存储的样本图像。什么是最好的有效途径气象存储在SD卡或DB?

I want to store sample images. what is the best efficient way weather to store on SD card or in DB?

推荐答案

如果图像并不大(2-3 KB),并将它们的集合是不应该被扩展,那么你可以将它们保存到数据库。但是,这将是很难把它们写,读他们。另一方面,用户将不能够与他们做什么。

if the images are not big(2-3 KB) and the collection of them is not supposed to be expanded then you can save them to db. But it would be harder to write them, read them. On the other hand the user won't be able to do anything with them.

否则,如果你想让用户可放大图像采集或图像是相当大的,你应该把它们存储到SD卡上。

Otherwise, if you want to let user to expand the image collection or the images are rather big you should store them to sd card.

无论如何,你应该知道的空间lackness,并适当地处理这些情况。

Anyway, you should be aware of space lackness and treat those cases appropriately.

这篇关于什么是Android中最好的做法图像存储在SD卡或SQL精简版数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆