Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image sometimes fails to correctly decode #11

Open
Bo98 opened this issue Apr 23, 2012 · 3 comments
Open

Image sometimes fails to correctly decode #11

Bo98 opened this issue Apr 23, 2012 · 3 comments

Comments

@Bo98
Copy link

Bo98 commented Apr 23, 2012

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.

@Esseme
Copy link

Esseme commented Jul 24, 2013

The solution offered here didn't work for me

@MiguelQueiroz
Copy link

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)

@Ram8948
Copy link

Ram8948 commented Dec 6, 2017

any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants