1

FTP Download Error - FTP Download File is 0 bytes after download Completes

view story
linux-howto

http://stackoverflow.com – I have developed a code to download a file from FTP server ,while downloading it shows the transfer rate and bytes downloaded. Everything is showing correctly, but problem is that downloaded file is always empty 0 bytes always. InputStream stream = null; FTPClient ftpClient = new FTPClient(); try { ftpClient.connect(server, port); ftpClient.login(user, pass); ftpClient.enterLocalPassiveMode(); ftpClient.setFileType(FTP.BINARY_FILE_TYPE); int bytesIn = 0; (HowTos)