Search code examples
javaandroidfresco

How can I download the image but not display it? Using Fresco


I need to save the encoded image to the external storage, to display it later, even if the device is offline.


Solution

  • You can use the imagepipeline directly, see http://frescolib.org/docs/using-image-pipeline.html

    For example, if you want to prefetch the image to disk cache, you can use something like

    imagePipeline.prefetchToDiskCache(imageRequest, callerContext);