ios - Uploading large files (greater than 50MB) to an FTP server -



ios - Uploading large files (greater than 50MB) to an FTP server -

i'm using black raccoon library in ios app upload little files ftp server using next suggested code:

- (ibaction) uploadfile :(id)sender { //----- file path item want upload nsstring *applicationdocumentsdir = [nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes) objectatindex:0]; nsstring *filepath = [nsstring stringwithformat: @"%@/%@", applicationdocumentsdir, @"file.text"]; //----- read entire file memory (small files only) uploaddata = [nsdata datawithcontentsoffile: filepath]; //----- create our upload object uploadfile = [[brrequestupload alloc] initwithdelegate: self]; //----- anonymous login leave username , password nil uploadfile.path = @"/home/user/myfile.txt"; uploadfile.hostname = @"192.168.1.100"; uploadfile.username = @"yourusername"; uploadfile.password = @"yourpassword"; //----- start request [uploadfile start]; } - (nsdata *) requestdatatosend: (brrequestupload *) request { //----- returns info object or nil when finish //----- basically, first time homecoming pointer nsdata. //----- , br upload data. //----- sec time homecoming nil means no more info send nsdata *temp = uploaddata; // shallow re-create of pointer uploaddata = nil; // next time around, homecoming nil... homecoming temp; }

what need upload big files (greater 50mb) without needing write entire file uploaded memory?

ios objective-c ftp

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -