| | |
| | | boolean result = false; |
| | | InputStream input = file.getInputStream(); |
| | | try { |
| | | System.out.println("this is ftpinfo: " + config.getUrl()); |
| | | System.out.println("this is ftpinfo: " + config.getPasswd()); |
| | | System.out.println("this is ftpinfo: " + config.getPath()); |
| | | System.out.println("this is ftpinfo: " + config.getPort()); |
| | | System.out.println("this is ftpinfo: " + config.getUsername()); |
| | | connect(config); |
| | | ftpClient.setBufferSize(1024 * 1024); |
| | | result = ftpClient.storeFile(new String(name.getBytes(encoding), "iso-8859-1"), input); |