Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.4k views
in .NET FTP by (162k points)
A user writes:

HI, Can you send me a sample code of how to use resume functionality for interrupted transfers, as I could not find any such in the samples downloaded.


Resuming is simply a matter of catching IOExceptions during transfers, and calling Resume() and then repeating the transfer in the catch.

7 Answers

0 votes
by (260 points)
[quote="support2"]A user writes:

[quote]HI, Can you send me a sample code of how to use resume functionality for interrupted transfers, as I could not find any such in the samples downloaded.[/quote]

Resuming is simply a matter of catching IOExceptions during transfers, and calling Resume() and then repeating the transfer in the catch.[/quote]


Hi,

Thanks for your reply, but after testing I observed that

During time of transfer file is named as .upload.filename and when I disconnected client after transferring few bytes(200 mb of zip file) file is not partially transferred (instead I could not see any file on server),hence transfer starts from scratch.

I Just called UploadFile() method
and after some time I disconnected and reconnected,hence throws exception and
called resumeTransfer first then Uploadfile() but transfer starts from scratch
,it shows in log as resume could not find any file with that name in server.

Am I missing anything here.
0 votes
by (162k points)
Do you upload the file as .upload.filename, or is the server doing that?

If the server does this, then it is doing an automatic rename when the transfer is complete (to the name you uploaded as), and it will not allow you to resume a transfer.
0 votes
by (260 points)
Do you upload the file as .upload.filename, or is the server doing that?

If the server does this, then it is doing an automatic rename when the transfer is complete (to the name you uploaded as), and it will not allow you to resume a transfer.


Hi,

I was with the impression that edtftpnet library does this (loading as .upload... and rename at end) .

1) so you mean it is being done by Server? If not by server is there a way to control that from library functionality by setting some modes of transfer,Please let me know.

As of now for testing purpose we are using edtftpnet 2.2 free version,please do recommend me if any other .net version(edtftpnet) of FTP has above way (as mentioned in point 1) of setting modes.

We are planning to buy licensed version,so can you recommend any such versions helps us in resume by overcoming above scenario.
0 votes
by (162k points)
No, the library doesn't do this. Try uploading with Filezilla or another client - you should see the same behaviour.
0 votes
by (260 points)
No, the library doesn't do this. Try uploading with Filezilla or another client - you should see the same behaviour.


Thanks for the info.

Is it edtftpnet/pro library can be used only for Windows forms applications, and does EnterpriseDT provides any advanced version of edtftpnet library that can be used in .net console application.

As of now we are testing with edtftpnet/free2.2 version and we are lookig for following features and library that can be used in console application:

1) File integrity check.
2) Concurrent transfers.
3)Asnchronous methods and queuing of ftp transfers.
4) fast transfer.
5)Secure transfers .
0 votes
by (162k points)
edtFTPnet/PRO can be used for console apps or Windows forms apps.

It supports file integrity checking, connection pooling & concurrent transfers, asynchronous methods/queuing and secure transfers (FTPS - FTP over SSL and SFTP - FTP over SSH).

Features here: http://www.enterprisedt.com/products/ed ... tures.html

Download trial here: http://www.enterprisedt.com/products/ed ... nload.html
0 votes
by (260 points)
edtFTPnet/PRO can be used for console apps or Windows forms apps.

It supports file integrity checking, connection pooling & concurrent transfers, asynchronous methods/queuing and secure transfers (FTPS - FTP over SSL and SFTP - FTP over SSH).

Features here: http://www.enterprisedt.com/products/ed ... tures.html

Download trial here: http://www.enterprisedt.com/products/ed ... nload.html


Thank you.

I got this download even before but becoz of target framework not supported i could not build the application.Now iam able to do that.

Categories

...