保存图像从ImageView的到SD卡 [英] Save image to sdcard from imageview
问题描述
我已经有一些定制TextView的和一个ImageView的列表视图。当我渴望点击项目我有存储项目信息数据库,但问题是如何存储图像的SD卡并存储到数据库中的相关路径。图像alread下载高速缓存现在我不想重新下载图像。
I have listview having customized some textview and one imageview. When I long click on item I have store that item information to the database but the question is how to store image in sdcard and store the relevant path to the database. The image alread download as cache now I don't want to re-download that image.
有没有办法到该图像存储到SD卡中。
Is there way to store that Image to the sdcard.
我现在用这个例子来下载列表视图 https://github.com/thest1/LazyList图像一>
I am using this example to download the images for listview https://github.com/thest1/LazyList
修改
我的解决方案
使用此示例时,无需额外的过程。只是图像的网络路径存储到数据库中,并且ImageView的传递到ImageLoader的对象与路径,它会使用缓存图像如果图像是存在于同一网址
推荐答案
没有需要额外的过程中,使用这个例子中,它会会关心未来的使用也同样网址
形象。这会从缓存目录如果图像发现,使用这种形象,否则下载它,然后使用它。
No Need to extra process, Using this example it'll will care for future usage also for same URL
of image. This will get from the cache directory if the image found that use that image otherwise download it and then use it.
这篇关于保存图像从ImageView的到SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!