fresco icon indicating copy to clipboard operation
fresco copied to clipboard

How to save image to disk cache

Open thizisarun opened this issue 11 years ago • 2 comments

I am new to fresco, so i want to know how to store and retrieve image from disk cache using fersco.

thizisarun avatar Oct 19 '15 09:10 thizisarun

This is the method you can use to prefetch image to disk cache: https://github.com/facebook/fresco/blob/master/imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipeline.java#L271. After that Drawee will fetch the image from disk cache instead of downloading it from network.

michalgr avatar Oct 19 '15 11:10 michalgr

If i am using prefetchToDiskCache it will store bitmap to disk ?

thizisarun avatar Nov 17 '15 12:11 thizisarun