0

I am trying to load image URL using Picasso but it is showing white screen I have checked on the browser URL is working below my code which I have implemented

  Picasso.get().load("https://www.dropbox.com/s/1lxgp2xj8wtv3zk/10762650.jpg?dl=0qaC8sFGR/tA4zUizSJLwx+oamRxyLDuPAPc/4Un7thhg2evDYq0Sf/9k=FLMf").into(holder.imageView);

4 Answers4

2

This is a problem with the image url. It works while using this url

Picasso.get().load("https://wpexpert.com.au/wp-content/uploads/2013/03/404.png").into(iv);

Also you can see that Picasso logs by using this above the above code like this

Picasso.get().setLoggingEnabled(true);
Picasso.get().load("https://www.dropbox.com/s/1lxgp2xj8wtv3zk/10762650.jpg?dl=0qaC8sFGR/tA4zUizSJLwx+oamRxyLDuPAPc/4Un7thhg2evDYq0Sf/9k=FLMf").into(iv);

So when we use your dropbox url Picasso gives error in logcat, so it is the problem with your url.

theanilpaudel
  • 3,348
  • 8
  • 39
  • 67
0

Well this might be set by Dropbox itself. When I tried to load image from dropbox url

I am getting HTTP 504 error. It's a timeout error. But dropbox hadle this to control server load.

You can get more detailed info from here.

I guess you can't show images from dropbox shared link.

One the other hand, Universal Image Loader will give

DECODING_ERROR

while loading from dropbox url.

So, better avoid dropbox urls.

Exigente05
  • 2,161
  • 3
  • 22
  • 42
-1

Just use the image file itself and don't forget to add <uses-permission android:name="android.permission.INTERNET" /> to manifest.

Picasso.get().load("https://www.dropbox.com/s/1lxgp2xj8wtv3zk/10762650.jpg").into(holder.imageView);
Mbuodile Obiosio
  • 1,463
  • 1
  • 15
  • 19