How to resume the file download
-
Problem: while downloading a huge file from a ftp server, if my service lost the connection in between, how can i resume the download? The problems are 1: Since it is a huge file, it is not a good idea to restart the download. 2: If we are download by parts in different threads, then each thread should have different connection. This will not work when the server restricts the number of users. Anybody please suggest a better algorithm for this.
-
Problem: while downloading a huge file from a ftp server, if my service lost the connection in between, how can i resume the download? The problems are 1: Since it is a huge file, it is not a good idea to restart the download. 2: If we are download by parts in different threads, then each thread should have different connection. This will not work when the server restricts the number of users. Anybody please suggest a better algorithm for this.
that depends on whether the ftp server runs a version of ftp which allows resumes AND you have an ftp client which also supports Resume cheers bryce --- Publitor, making Pubmed easy. http://www.sohocode.com/publitor
-
Problem: while downloading a huge file from a ftp server, if my service lost the connection in between, how can i resume the download? The problems are 1: Since it is a huge file, it is not a good idea to restart the download. 2: If we are download by parts in different threads, then each thread should have different connection. This will not work when the server restricts the number of users. Anybody please suggest a better algorithm for this.
To resume a download you need to use the REST command: REST The REST command will make the server start at a give byte offsett and not at the start of the file. When you send that command the server will reply with either a negative response, or the code 350, which means it will start at the byte offsett you've specified. NOTE: The REST command must be followed by a service command (RETR or STOR). -Rune SVendsen