Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in Java FTP by (160 points)
I am writing an android application that automatically uploads sounds to provided FTP server.
It needs to have to have resume capability to avoid retransmission of already transmitted data so I've used the "Writemode.RESUME" . [using java FTP client]

my problem is that if network connection goes off in mid transmission then on each retry to resume the upload it throws error error like "Can't access file, its being in use by other process"!!

Need help...Urgent.....Thanks[/b]

2 Answers

0 votes
by (162k points)
It sounds like that error message is coming from the server. There's probably a timeout period that applies - after a certain amount of time the server will free resources held by connections that timeout. So you may need to wait until that period expires before resuming. Might help to post the log file at DEBUG level.
0 votes
by (160 points)
#!support2 ...Thanks for your kind reply.

I did what u told me to do, but still had a problem like when server timeouts it deletes the file that was locked by that FTP session.
I fixed it on server side by allowing broken files transfers.

Thanks once again.

Categories

...