0

I try to download a large file using the snippet from the following url: Download a file with Android, and showing the progress in a ProgressDialog. However, it only works with small file. When I try to download a large file such as this one, I get this exception:

java.io.IOException: unexpected end of stream at libcore.net.http.FixedLengthInputStream.read(FixedLengthInputStream.java:48)

What's the problem? Is it because the server closes the connection for long connection?

Community
  • 1
  • 1
Bear
  • 5,138
  • 5
  • 50
  • 80

0 Answers0