I'm looking for a java library library that works on the android that can download and resume files from an FTP server. Does anyone know of such a library. I've found lots of client apps, but no stand alone libraries.
+1
A:
Did you read this resource? You can pick something from it. Specifically this page.
DroidIn.net
2009-10-14 19:02:49
+3
A:
Try using apache commons ftp
ftpClient.connect(InetAddress.getByName(server));
ftpClient.login(user, password);
ftpClient.changeWorkingDirectory(serverRoad);
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
BufferedInputStream buffIn=null;
buffIn=new BufferedInputStream(new FileInputStream(file));
ftpClient.enterLocalPassiveMode();
ftpClient.storeFile("test.txt", buffIn);
buffIn.close();
ftpClient.logout();
ftpClient.disconnect();
Bob.T.Terminal
2009-10-30 17:49:19
I've started using apache commons ftp and it's a beaut.
MattK
2010-08-22 14:46:06
very very inportant - active mode doesn't work on your android device. You must enter passive mode.so in between connect and login put this: ftpClient.enterLocalPassiveMode();
MattK
2010-08-29 20:29:43
A:
We've successfully tested our free, open-source Java FTP library (edtFTPj) as well as our commercial Java FTP/FTPS/SFTP library (edtFTPj/PRO) with Android. You can find edtFTPj at enterprisedt.com/products/edtftpj and edtFTPj/PRO at enterprisedt.com/products/edtftpjssl.
HansA
2010-02-10 05:03:45
Mr. Bird, I think your answer didn't add much information and didn't actually have anything to do with the conversation.
MattK
2010-08-23 21:43:48
A:
Try AndFTP, it comes with Intent to upload/download for external applications: http://www.lysesoft.com/products/andftp/index.html
lysesoft
2010-04-11 15:28:23