0

I'm downloading a file over the internet using HTTP and I would like to make a progress bar. How do I determine the size of the file I'm going to download, in bytes. I'm using an HttpURLConnection in Java, and I tried getting the Content-Length property in it, and it returned 529, even though the size of the file to be downloaded is ~200MB.

shmosel
  • 49,289
  • 6
  • 73
  • 138
Alex Jone
  • 292
  • 2
  • 14

0 Answers0