毕加索加载图像细腻如果从HTTPS URL,如:https://i.ytimg.com/vi/28uUsJ72a1A/hqdefault.jpg
毕加索不从http url加载图片,但从https url加载图片?
由于YouTube引导通过HTTPS这个工程的所有流量: http://i.ytimg.com/vi/28uUsJ72a1A/hqdefault.jpg
但是,当我用我的网址 http://www.example.com/images/djnsdfndsf.jpg
它redircets链接到该网站的https版本,只是给出了错误
这就是我如何加载图像 Picasso.with(this).load(current.getImageURL()).into(ImageView);
So I tried using this:
//Below code for Picasso initializing once for the app
private Picasso picasso;
private OkHttpClient okHttpClient;
okHttpClient = new OkHttpClient();
picasso = new Picasso.Builder(this)
.downloader(new OkHttpDownloader(okHttpClient))
.build();
//Below code to retrieve the images whereever required on the app
picasso.with(this).load(current.getImageURL()).into(imageView)
但上面的代码给出解决不了OkHttpDownloader
现在,我使用compile 'com.squareup.picasso:picasso:2.5.2'
编辑 如何强制毕加索下载它通过HTTP没有使用https?
picasso.with(本).load(电流。getImageURL())。(ImageView **)ImageView是你的对象或你的类名>> –
它的对象 – knight