// Set data channel protection to privateįtFileType(FTP.BINARY_FILE_TYPE) īuffIn = new BufferedInputStream(new FileInputStream(file.getAbsolutePath())) įinal OutputStream os = new FileOutputStream(finalStoragePath + "/OK.txt") KeyManagerFactory kmf = getInstance(KeyManagerFactory.getDefaultAlgorithm()) įnnect(InetAddress.getByName("server ip address"), 990) This is my code: FTPSClient ftpClient = new FTPSClient("TLS", false) įtpClient.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out))) I can successfully login, connect to the server and list files, but whenever i try to get or store a file, I always get a timeout exception, also with very large timeout value, even for a 2Kb txt file. The communication must be done through explicit TLS authentication. I trying to implement a FTP file transfer in android, using apache commons library. I'm posting this question after have tried over and over again to get it working, with no success.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |