Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by
Hi

I am using the edtftpnet dll to upload files to the ftp server. It works fine when i try to upload a text file. But it gives me a error "A connection attempt failed". when i try to upload a tiff image file.
The code i used is
ftp.Login(user, pass)
ftp.ConnectMode = FTPConnectMode.PASV
ftp.TransferType = FTPTransferType.BINARY
ftp.Timeout = 5000
ftp.put("sample.tiff","sample.tiff")

Why does this error occur?

What should i do?

2 Answers

0 votes
by (162k points)
It should make little difference whether it is an image file or not. As long as it is set to binary, it should work fine.

We'll need more specific details about the error if we are to help. Try the demo program, or a modification of it.
0 votes
by
It works well now.

Categories

...