Error 504 on loading a picture using Picasso - android

I'm trying to load a picture into CircleImageView from a URL which I get from an API call. The URL of the image is working when I paste it into the browser but Picasso is unable to load it into the view.
The image URL is an https URL. For some reason, I can't share the image URL.
If anyone has faced the same issue or know the solution to this please help.
Thanks

Since it seems that's a known issue of Picasso; if you are into Kotlin use Coil, otherwise Glide.

Related

Picasso image not displaying android

on my nodeJS server, i have an image that is displaying on web app however it can not be accesses from the android app using Picasso.
the url from the server is :
https://www.mesannuairesvideos.com/uploads/file-1491574016406.jpg
my code is :
Picasso.with(getApplicationContext())
.load("https://www.mesannuairesvideos.com/uploads/file-1491574016406.jpg")
.placeholder(R.drawable.real_madrid_tshirt)
.error(R.drawable.ic_profile)
.resize(250, 200)
.transform(new CircleTransform())
.into(imageView);
could anyone try to open it in an android test app please, I want to see if it can be included in an imageView on android application
any help would be appreciated. thanks
For what it's worth, I was having this issue and when I tried it on an actual device it was visible when it was not visible on the emulator.
your image cant be opened in browser neither maybe its your api-key or link

How to load JPEG images to ImageView using Picasso?

For the first time I'm getting issue while using Picasso Image library into my project.
I'm having my JPEG image into server. This is my code.
Picasso.with(mContext).load("https://beta.receiptmatch.com/admin/webresources/images/no_company_image.jpg").into(itemViewHolder.imgLogo);
Picasso failed to load this image into ImageView. It doesn't print any warnings/issue in log tracker.
Note: Problem only with .jpeg/.jpg extension url. Url with .png extension working fine.
Please help on this. Thanks in advance.
Make sure you have added the INTERNET permission to your code

Picasso: URL cache expiration

I am developing android app that shows an image from URL. For this, I'm using Picasso library and it is working nicely. However, I think its caching time period depends on the headers of the image URL.
I have set Cache-Control:max-age=0 for image URL header and Picasso is only caching for few days and I want to store these images more than few days. Please help me find out the solution.
According to this answer there is no way to tell picasso to use some custom cache period.

android image not display with https protocol

Hi Friends I want your help to solve my issue if you have any idea please tell.
I want to show image on list view.When I use http protocol image display fine but when i use HTTPS image not display.
I used Picasso to display image on image view
Hear is my code what i used
Picasso.with(mContext).load("https://velocityagency.com/wp-content/uploads/2013/08/go.jpg").into(imgProduct);
thanks in advance
https://velocityagency.com/wp-content/uploads/2013/08/go.jpg
This is happening because the image URL is having a problem. Try to fix this issue first, then your image will load properly in android app

Android: Load Image from server

I was thinking, maybee the best way of loading pictures that I have on the server, using for my site would be to get the url for the picture..
How can I load picture from a url to ImageView?
I would say setImageUri if I understood correctly what you're trying to do.

Categories

Resources