How to detect Internet speed ??
Posted on 2002-05-19
I have a pure java program and it will downlod some file from server. When it download files from server, simetime it will take long time if files size is big. I plan to use JProgressBar to show user the progress. But I have a problem to calculate the total time for download. Actually I have below two question:
1) how to detect the Internet speed
2) how to get file size in server side--suppose I have URL for file in server side.
If I can handle above two problems, I can get total download time. Then I can use JProgressBar. Tahnks