Je suis à la recherche d'une bibliothèque Java qui fonctionne sur l'Android qui peut télécharger et reprendre des fichiers à partir d'un serveur FTP. Est-ce que quelqu'un sait d'une telle bibliothèque. J'ai trouvé beaucoup d'applications clientes, mais pas de bibliothèques autonomes.Android FTP Library
Répondre
Essayez d'utiliser apache commons ftp
FTPClient ftpClient = new FTPClient();
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();
J'ai commencé à utiliser apache commons ftp et c'est un beaut. – MattK
très très inportant - le mode actif ne fonctionne pas sur votre appareil Android. Vous devez entrer en mode passif. donc entre connecter et se connecter mettre: ftpClient.enterLocalPassiveMode(); – MattK
Etes-vous sûr qu'il ya des apache comms api client sur android? – Reno
- 1. erreur de base library Android
- 2. FTP passif au lieu de FTP actif
- 3. MySql Audio Library
- 4. C# Audio Library
- 5. BLAS Library Benchmark
- 6. C++ SpellChecker Library
- 7. Javascript String Library
- 8. JavaScript Background Perspective Library
- 9. Blackhen Threading Library
- 10. Python Music Library?
- 11. C# Game Network Library
- 12. PHP CSS Selector Library?
- 13. Enumeration Utility Library
- 14. authorize.net C# wrappers/library
- 15. SharePoint and Enterprise Library 4.0
- 16. Enterprise Library 4.1 Politique d'exception
- 17. Good Java Process Control Library
- 18. erreur Library pour Ruby/QT
- 19. Enterprise Library Logging: TraceListeners Question
- 20. Erreur FTP dans powershell
- 21. Codes de réponse FTP
- 22. Client FTP scriptable
- 23. partage de fichiers ftp
- 24. PDSF vs FTP
- 25. Problème de connexion Ftp
- 26. Déploiement FTP dans Eclipse
- 27. Téléchargement FTP dans .NET
- 28. Compiler C++ sur FTP
- 29. SQL Server 2000 FTP
- 30. Script de distribution FTP
Avez-vous lu [cette ressource] (http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp.html)? Vous pouvez en choisir quelque chose. Plus précisément [cette page] (http://www.javaworld.com/javaworld/jw-04-2003/ftp/jw-0404-ftptable.html). – Bostone
Alors, que diriez-vous d'écrire juste une réponse avec ce contenu? – mliebelt