LazyList icon indicating copy to clipboard operation
LazyList copied to clipboard

Image sometimes fails to correctly decode

Open Bo98 opened this issue 13 years ago • 3 comments

I've noticed that sometimes the image can fail to correctly decode.

EXAMPLE: http://i44.tinypic.com/vzcxg2.png (I cut off the top half of the image)

As you can see the bottom half does not show correctly.

I've noticed that in ImageLoader.java if you change

            HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();
            conn.setConnectTimeout(30000);
            conn.setReadTimeout(30000);
            conn.setInstanceFollowRedirects(true);
            InputStream is=conn.getInputStream();

to this:

            HttpGet httpRequest = null;
            httpRequest = new HttpGet(imageUrl.toURI());

            HttpClient httpClient = new DefaultHttpClient();
            HttpResponse response = (HttpResponse) httpClient.execute(httpRequest);

            HttpEntity entity = response.getEntity();
            BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
            InputStream is = bufHttpEntity.getContent();

the problem goes away.

Bo98 avatar Apr 23 '12 08:04 Bo98

The solution offered here didn't work for me

Esseme avatar Jul 24 '13 11:07 Esseme

It happends sometimes to me too. Usually when cache is getting critical. My question is, is the bitmap size of the grid supposed to be a thumbnail or the full a 800px resolution picture, because on tablets, if i use a 250px one it will be hard to see in the tablet, (assuming the grid is bigger)

MiguelQueiroz avatar Sep 06 '14 13:09 MiguelQueiroz

any solution?

Ram8948 avatar Dec 06 '17 10:12 Ram8948