安卓:保存图片到数据库数据库、图片

2023-09-05 05:18:03 作者:早恋培养情商

我有3 的ImageView s的活动和按钮。点击的ImageView 显示了 AlertDialog 与图像的列表(位于 / RES /绘制),用户可以选择。

I have a activity with 3 ImageViews 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 ImageViews.

任何指针?

推荐答案

我觉得preferred解决方案是将存储图像的SD卡上,并存储在数据库中的文件路径

I think the preferred solution is to store the images on the SD card and store the file paths in the database

 
精彩推荐
图片推荐