swedinjon edgarjon
swedinjon edgarjon

Reputation: 77

Image url not loading in picasso

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);

Upvotes: 0

Views: 2250

Answers (4)

Exigente05
Exigente05

Reputation: 2211

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.

Upvotes: 0

Mbuodile Obiosio
Mbuodile Obiosio

Reputation: 1543

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);

Upvotes: -1

theanilpaudel
theanilpaudel

Reputation: 3478

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.

Upvotes: 2

Related Questions