I need to save the encoded image to the external storage, to display it later, even if the device is offline.
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);