简体   繁体   English

使用Amazon S3 TransferUtility文件作为Fresco的图像源

[英]Using Amazon S3 TransferUtility files as image source for Fresco

I have a set of images that are being periodically uploaded to an Amazon S3 bucket. 我有一组图像,这些图像会定期上传到Amazon S3存储桶。 I need to display these images in my app. 我需要在我的应用中显示这些图像。 As opposed to manually writing code to handle aspects like multi-threaded downloads and caching I wanted to use Fresco to do this as I'm already using it for other tasks within my app. 与手动编写代码来处理多线程下载和缓存等方面相反,我想使用Fresco来完成此任务,因为我已经将其用于应用程序中的其他任务。 This answer mentions that it's possible to do this by writing a custom content provider which wraps a transfer observer. 答案提到可以通过编写包装传输观察器的自定义内容提供程序来实现此目的。 However, the specifics of doing this don't seem to be clear. 但是,执行此操作的具体细节似乎尚不清楚。

A bunch of tutorials about writing a custom content provider available. 提供了大量有关编写自定义内容提供程序的教程。 For instance: https://developer.android.com/guide/topics/providers/content-provider-creating . 例如: https : //developer.android.com/guide/topics/providers/content-provider-creating

Another option might be to implement a custom network fetcher which handles special URIs and queries S3 underneath: https://frescolib.org/docs/using-other-network-layers.html 另一个选择可能是实现自定义网络提取程序,该程序可处理特殊URI并在下面查询S3: https : //frescolib.org/docs/using-other-network-layers.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM