I want to put a progress bar for an FTP download... is it possible?

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

I have a situation where an FTP download can take several minutes, depending
on file size and bandwidth (varies from wireless to internal LAN) and I
would like to give an estimate of download time as well as display a
progress bar.

In order to do this, it would be helpful to know the size of the selected
download file. Is this possible with FTP?
 
Well, if you were using raw tcp socket programming, then you could find the
size of the file before issuing the get command. Once you have that, then
based on the bytes received so far, you could show a progress bar ..

- Sahil Malik
Independent Consultant
You can reach me thru my blog at -
http://www.dotnetjunkies.com/weblog/sahilmalik/
 
Back
Top