Android-Universal-Image-Loader icon indicating copy to clipboard operation
Android-Universal-Image-Loader copied to clipboard

How can I get cache image path for particular URL..

Open bhavesh-hirpara opened this issue 13 years ago • 9 comments

I can not process Bitmap in webview So I want that cache image path in onloadingComplated or else where .... I am getting bitmap but I have to save in memory card temporary and will have to load through that path.

suppose i am loading from http://www.ricoh.com/r_dc/cx/cx1/img/sample_04.jpg. with cache on disc configuration and If i want cached image path of this url then how can I get??

I want to display image in webview. webview will not cahe my image. I want to cache image with image loader and want to display in webview. Can you provide cached image path also??

bhavesh-hirpara avatar Oct 09 '13 06:10 bhavesh-hirpara

I don't quite understand your question.

nostra13 avatar Oct 09 '13 09:10 nostra13

I want to get cached image path that is loaded before. I know I can get bitmap... but I want to use path in webview

bhavesh-hirpara avatar Oct 09 '13 09:10 bhavesh-hirpara

you can use loadImage(String uri, ImageLoadingListener listener)

lizijin avatar Oct 17 '13 09:10 lizijin

You can use DiscCacheUtil.findInCache(imageUri, imageLoader.getDiscCache()). You'll get a image File so you can get path of this file.

nostra13 avatar Oct 19 '13 21:10 nostra13

Yuap got it.... Thanks :)

bhavesh-hirpara avatar Oct 25 '13 05:10 bhavesh-hirpara

"DiscCacheUtil.findInCache(imageUri, imageLoader.getDiscCache())" but where is the DiscCacheUtil.java ?

pop1030123 avatar Dec 10 '14 08:12 pop1030123

DiskCacheUtils?

nostra13 avatar Dec 11 '14 13:12 nostra13

Good!

pop1030123 avatar Dec 12 '14 04:12 pop1030123

Use full package name. com.nostra13.universalimageloader.utils.DiskCacheUtils.findInCache()

hodaz avatar Jan 20 '15 10:01 hodaz