2011-06-24 70 views

回答

5

使用此它工作正常,我...

SimpleFTP ftp = new SimpleFTP(); 


       // Connect to an FTP server on port 21. 
       ftp.connect("server address", 21, "username", "pwd"); 

       // Set binary mode. 
       ftp.bin(); 

       // Change to a new working directory on the FTP server. 


       ftp.cwd("path"); 

       // Upload some files. 
       ftp.stor(new File("your-file-path"));    

       // Quit from the FTP server. 
       ftp.disconnect(); 

获取更多信息和罐子... http://www.jibble.org/simpleftp/

相关问题