Continue NSURLConnection/NSURLRequest from a given Byte

Posted by Sj on Stack Overflow See other posts from Stack Overflow or by Sj
Published on 2010-05-25T23:29:52Z Indexed on 2010/05/25 23:31 UTC
Read the original article Hit count: 280

Filed under:
|

I am working with a web service right now that requires me to upload video binaries straight to their web form via the iPhone SDK. Simple enough. The part that is getting me though is when the connection is interrupted, they want me to be able to continue the upload from a given byte.

So here is what I have: the original data & the last byte uploaded What I need to know: how can I continue the data from that byte? I seems like it would be something similar to truncating NSData by the byte but I do not know how to do that for an NSURLConnection/NSURLRequest. Thank you!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about mac