I use Apache Commons FTPClient 3.1 for easy file uploads. The storefile () file works fine for smaller files (up to 100 MB), but when I try to download something larger than 100 MB, it will complete the download, but just hang.
I tried to enter passive mode, as others suggested, but it seems that the problem is not resolved. I tried several FTP servers with the same results, so I assume this is not a host.
Here is the gist of what I'm doing:
ftpClient.connect(...); ftpClient.login(...); ftpClient.enterLocalPassiveMode(); boolean success = ftpClient.storeFile(...); if(success) ...
The program freezes on line 4 for large files, but successfully loads the file.
source share