android - Picasso url does not load -


i have dynamic url show avatars users.

http://www.dapptapp.com/contents/avatar/200/200/27.png

the image show in browser picasso not show image.

the current code used:

 getpicasso().load("http://www.dapptapp.com/contents/avatar/200/200/27.png").into(civavatar); 

is has headers of image or something. can't seem pinpoint error. if use other regular image web there no problem.

postman response on url:

connection →keep-alive content-encoding → content-encoding type of encoding used on data.  gzip content-length →36908 content-type →image/png date →tue, 03 jun 2014 14:44:22 gmt keep-alive →timeout=1, max=100 server →apache vary →accept-encoding,user-agent 

i run problem too.

if ok-http lib not provided, picasso using urlconnectiondownloader load url.

seems times load url param boolean localcacheonly=true, , header setting httpurlconnection.

connection.setusecaches(true) connection.setrequestproperty("cache-control", "only-if-cached,max-age=" + integer.max_value); 

then returns header:

x-android-response-source cache 504 

fixed fork picasso , comment these lines. thinks there may better solutions.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -