Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.2k views
in Java FTP by (162k points)
A user writes:
I am a student at XXXXX and I am
currently testing the edtFTPj/Free program for a project. Our main goal is
to resume a file transfer after the transfer has physically been
disconnected. An additional goal is to know the status of the current
transfer. During the testing period of the program, we haven't yet been able
to figure out, if these goals are reachable with this program.

I would be grateful, if you could inform me of the relevant classes and
methods in which possible interfaces exist which we could amend to reach the
above goals.
Many thanks for your help.


To resume a transfer, simply reconnect and call the method again, supplying the resume parameter as shown below:

FileTransferClient ftp = new FileTransferClient();

.......

ftp.downloadFile(localFile, remoteFile, WriteMode.RESUME);


You'll have to clarify what you mean by the status of the transfer.

2 Answers

0 votes
by (140 points)
Thank you for your info.

What we are trying to establish, is to send a very large file (4GB) from host A to host B (without a server inbetween). There is no downloading process from the client - only FTPtransfer from the server. The main goal of this project is to resume the transfer at the exact point of the file were it stopped, after a physical disconnection has happened, so that the file needn't be sent again from start. We're now asking ourselves following questions:

Does the api realize, if there is a physical disconnection (not manual disconnection)?
Does the api save the info about the exact point of the file, were it send its last bit?
Does the api know, to resume the file transfer at that exact point of the file and not start from scratch?

Clarification of the status of the transfer - We want to know at any time:
How much of the file has already been sent?
How much longer will it take to send the rest?

Thanks for your help.
Regards, schelpet
0 votes
by (162k points)
See http://www.enterprisedt.com/products/ed ... sfers.html for info on resume. There is no problem resuming transfers at the point the transfer ended.

For your last question, look at http://www.enterprisedt.com/products/ed ... sfers.html

Categories

...