Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.5k views
in Java FTP by
Hey all,

Does anyone have any examples of how to write recoverable FTP code? I am guessing that perhaps you need to use the FTPProgressMonitor to record/store the last sent byte (size in total) and then should something go belly-up, restart from that last byte size?

If i'm way off the mark coudl someone please give me some help?

Thanks!

1 Answer

0 votes
by (162k points)
Some good news for you :)

In the just released 1.4.3 version of edtFTPj, we have implemented resume functionality for binary file uploads and downloads.

If the transfer fails, all you need to do is to call resume() and it should work automagically if you start the transfer again. Try it out!

Hey all,

Does anyone have any examples of how to write recoverable FTP code? I am guessing that perhaps you need to use the FTPProgressMonitor to record/store the last sent byte (size in total) and then should something go belly-up, restart from that last byte size?

If i'm way off the mark coudl someone please give me some help?

Thanks!

Categories

...