by ashosheh » Mon Sep 09, 2013 9:50 pm
We have Version: 4.5.0
---------------------------
SSHFTPClient sshFtp = new SSHFTPClient();
sshFtp.getValidator().setHostValidationEnabled(false);
sshFtp.setRemoteHost(serverAddress);
sshFtp.setAuthentication(userName, password);
sshFtp.setType(FTPTransferType.BINARY);
sshFtp.connect();
sshFtp.chdir(remotePath);
sshFtp.setType(FTPTransferType.BINARY);
File localfile = new File(localPath, fileName);
System.out.println(sshFtp.getType()); //--> This line prints BINARY
sshFtp.get(localPath, fileName);