安卓:保存图片到数据库 [英] Android: Saving Image to Database
本文介绍了安卓:保存图片到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有3 的ImageView
s的活动和按钮
。点击的ImageView
显示了 AlertDialog
与图像的列表(位于 / RES /绘制
),用户可以选择。
I have a activity with 3 ImageView
s and a Button
. Clicking on the ImageView
shows an AlertDialog
with a list of images (located in /res/drawable
) that the user can select.
我已经打了一堵墙,我不知道如何将图像存储在的ImageView
取值被选中的数据库。
I've hit a wall where I don't know how to store the images to the database that were selected in the ImageView
s.
任何指针?
推荐答案
我觉得preferred解决方案是将存储图像的SD卡上,并存储在数据库中的文件路径
I think the preferred solution is to store the images on the SD card and store the file paths in the database
这篇关于安卓:保存图片到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文