Resuming download

Top  Previous  Next

Resumes the download of the remote file from the FTP server.

 

Context:

 

You have a big file and when you tried to download this file, the transfer failed. Now you have the 50% file on the client, but you need download the rest of the file. You can use ResumeDownload method to do this, automatically resume the download from the point of failure.

 

[C#]

// create new Ftp instance

Ftp ftp = new Ftp(hostname,username,password,port);                        

 

// establish connection

ftp.Connect();

 

// resumes the download of the remote file from the FTP server.

ftp.ResumeDownload("filename.txt");

 

// disconnect

ftp.Disconnect();

 

 

 

[Visual Basic]

' create new Ftp instance

Dim ftp As Ftp = New Ftp(hostname, username, password, port)

 

' establish connection

ftp.Connect()

 

' resumes the download of the remote file from the FTP server.

ftp.ResumeDownload("filename.txt");

 

' disconnect

ftp.Disconnect()