Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.3k views
in Java FTP by
Morning,

Our application is using your libraries to send text files that are using Unix-style line termination to our client. However, the file that was received by the client is a text file using Windows line termination.

This is a code snippet of what is being called to send the file to the server.

ftp = new SSLFTPClient(host,
SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE
| SSLFTPClient.ConfigFlags.DISABLE_WAIT_ON_CLOSE);

ftp.setValidateServer(false);
ftp.connect();

// switch to SSL on control channel
ftp.auth(SSLFTPClient.AUTH_TLS);
ftp.login(username, password);
ftp.setConnectMode(com.enterprisedt.net.ftp.FTPConnectMode.PASV);
ftp.setType(FTPTransferType.ASCII);
ftp.put(outFile.getPath(), outFile.getName());

Is it possible that your libraries are changing the text files so that they are sent with Windows line termination?
This is a rather urgent matter and any help would be greatly appreciated.

Please log in or register to answer this question.

Categories

...