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

Fix for issue #29 - image downloading issue on some mobile networks #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yifengj
Copy link

@yifengj yifengj commented Jun 13, 2012

Fixed by removing the usage of getContentLength(), since this will not return correct length of actual image data when compression in use, according to the documentation of HttpURLConnection class (http://developer.android.com/reference/java/net/HttpURLConnection.html).

… to Android documentation "By default, this implementation of HttpURLConnection requests that servers use gzip compression. Since getContentLength() returns the number of bytes transmitted, you cannot use that method to predict how many bytes can be read from getInputStream()."
@lefam
Copy link

lefam commented Jul 3, 2012

Is this issue fixed or not?
I think we should follow a solution that works for all users without exceptions.

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

Successfully merging this pull request may close these issues.

None yet

3 participants