您的位置:首页 > 其它

使用fresco如何获取本地缓存图片的文件

2016-01-13 11:39 2486 查看
FileBinaryResource resource = (FileBinaryResource)Fresco.getImagePipelineFactory().getMainDiskStorageCache().getResource(new SimpleCacheKey(uri.toString()));
File file = resource.getFile();


fresco保存的缓存文件是以cnt结尾的,拿到文件后只要另存为jpg或png文件即可。

貌似上面这种方法不推荐,一下两个链接可以看下:

http://stackoverflow.com/questions/29772949/android-how-to-get-image-file-from-fresco-disk-cache/31610386#31610386

https://github.com/facebook/fresco/issues/80
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  fresco