Adding resume capability to a C# application

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
zephyr26
Posts: 1
Joined: Sat Apr 26, 2008 6:50 am

Adding resume capability to a C# application

Post by zephyr26 » Sat Apr 26, 2008 7:32 am

Hi,

How should the parameters nStartPosLo and nStartPosHi in the DownloadFile function, be set while using the sfFTPLib.dll component in a C# application? Assuming we can retrive the position at which file transfer was stopped so do we provide that byte value or is there some other method?

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Adding resume capability to a C# application

Post by mb » Sat Apr 26, 2008 12:23 pm

Use the GetFileSize() function to get the size of the remote file. Then pass the values to the nStartPosLo and nStartPosHi arguments of the DownloadFile function.

Regards,
Mat

Post Reply