2013-07-17 59 views
0

即時通訊使用SCRFTPRequest發送圖像文件到FTP服務器,現在它的工作。但如果我想嘗試發送多個圖像? 這是我使用的方法:iOS:發送多個圖像到FTP服務器

NSString *[email protected]"ftp://localhost"; 
NSString *[email protected]"21"; 

NSString* escapedUrl = [linkURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 
NSString *directoryName = [NSString stringWithFormat:@"%@",escapedUrl]; 


NSString *strurlUpload=[NSString stringWithFormat:@"%@:%@%@/",ftpUrl,strPortNumber,directoryName]; 

NSString *getfilePath=filepath; 
ftpRequest = [[SCRFTPRequest alloc] initWithURL:[NSURL URLWithString:strurlUpload] toUploadFile:getfilePath]; 

是否有任何其他方法或我必須使用另一個庫?

謝謝..

回答

0

您使用ASIHTTPRequest教程它有幫助你

+0

嗨,我已經使用ASIHTTPRequest幾次,但這次我的服務器是一個FTP服務器,我不安靜知道ASIHTTPRequst可以連接到FTP服務器嗎?謝謝 – user2373192

+0

是的,它連接到FTP服務器 –