Posted on 2008-09-22 04:03
leekiang 閱讀(483)
評論(0) 編輯 收藏 所屬分類:
ftp,http,tcp,udp等
1,commons-net ftpclient 怎么判斷服務器是否存在文件A?
FTPFile[] ? ftpFiles ? = ? ftp.listFiles("a"); ?
? System.out.println(ftpFiles.length);
2,http://www.tkk7.com/sterning/archive/2007/10/22/154861.html
3,亂碼問題.
應用服務器在unix上,ftp在window上,下載時換行處可能有問題,
?解決:將文件傳輸類型設置為二進制
???? ftpClient.setFileType(FTP.BINARY_FILE_TYPE);?見
public
InputStreamretrieveFileStream(
String path)方法的注釋:
If the current file type is ASCII, the returned InputStream will convert line separators in the file to
the local representation.
commons.net包中的FTPClient.listFiles()方法返回null的問題及其解決方案http://hi.baidu.com/3seefans/blog/item/667e32afa0a58bc97cd92aa2.html
http://hi.baidu.com/hzwei206/blog/item/7c901d2debf7e136359bf7cd.html
?
6,
http://zjsoft.javaeye.com/blog/189874
http://topic.csdn.net/t/20050820/13/4220332.html
http://www.cnblogs.com/swingboat/archive/2005/05/31/165613.html
http://www.onflex.org/ted/2007/05/flexftp-ftp-client-in-flex-using.php
http://tech.it168.com/j/2007-10-18/200710182058687.shtml
http://hi.baidu.com/3seefans/blog/item/667e32afa0a58bc97cd92aa2.html