在Android中本地存储图像的最佳方法是什么? [英] What is the best way to store images locally in android?

查看:53
本文介绍了在Android中本地存储图像的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个脱机应用程序,用户可以在其中添加带有图像细节的图像.我想那样,离线存储图像的最佳方法是什么?

I want to create an offline app in which the user can add images with image detail. I want to as that what is the best way to store image offline?

应该使用SQLite blob格式,SQLite base64编码的String还是应该将其存储在内部存储中,还是应该将其存储在共享首选项中.请帮助我,如果您知道其他方法,请提一下.

Should I use SQLite blob format, SQLite base64 encoded String or should I store it in internal storage or Should I store It in shared Preference. Please help me, If you know any other way then please mention it.

推荐答案

内部存储是最好的. 如果要使其保密,请更改图像格式,然后保存 否则保存原样

Internal storage is best of all. if you want to keep it private ,change format of image and then save otherwise save as it is

这篇关于在Android中本地存储图像的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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