I got a strange problem with URL (Java 1.6-07):
URL.openStream() is deadly slow… like if it was loading the whole file somewhere before returning the stream.
the problem is that for a big file >1MB my progressbar is stuck at 0 percent then suddently goes 100% and I dont find that is very user friendly.
inded URLConnection.openStream() wich work the same is slow too.
setCache(false) doesn’t help too
it work well with the MS jvm …
I think that I will end using a tcp socket and simulate the HTTP GET as I already know it work well, but before, I would like to know if you have any better/shorter ideas ??