-1
我需要从FTP服务器检索一些照片,我想用UIL来做到这一点。如何使用通用图像加载器(UIL)从FTP服务器下载和显示图片?
我尝试下面的代码:
String photoURI = "ftp.cluster123.ovh.net/photos/myphoto.jpg";
ImageLoader.getInstance().displayImage(photoURI, photoImageView);
,但我得到了以下错误:
04-23 10:04:53.028: E/ImageLoader(3712): UIL doesn't supportScheme(protocol) by default
[ftp.cluster123.ovh.net/photos/myphoto.jpg]. You should implement this support
yourself (BaseImageDownloader.getStreamFromOtherSource(...))
04-23 10:04:53.028: E/ImageLoader(3712): java.lang.UnsupportedOperationException: UIL
doesn't support scheme(protocol) by default [ftp.cluster123.ovh.net/photos/myphoto.jpg].
You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
我该如何操作连接到FTP服务器,只有当照片是不是已经被缓存? 我应该使用什么URI? 我应该保留FTP服务器还是考虑另一种在线存储照片的方式?
感谢