Hi Ori,
Have you got an answer?
I have exactly the same problem. I have tried different solutions but with the same result.
Goes well for small files, not for big ones.
The read() function stops until it get's connection reset after a while.
Also tried apache.commons.io.FileUtils.getURLToFile(URL ..., File ...) but with same result.
Curious, is that instead of getting an url file (
http://...), I tried with the same file (downloaded by browser) already saved at my disk (
file:///...). And from filesystem it works with the same code.
I suspect the problem is the connections opened.
Hope for a solution,
DnlCY