NSURLConnection chunked uploading - How?

I need to create a way to load a byte using encoded encoding.

I have an array of bytes that contains an audio file, I would like to send this file to the server using a stream with channels.

I was able to boot using my own socket, but I would like to do it through one of the NSURL libraries (NSURLConnection?). Is it possible?

Thanks!

+3
objective-c iphone cocoa chunked-encoding
source share
2 answers

You can do this with ASIHTTPRequest, available here: http://allseeing-i.com/ASIHTTPRequest/How-to-use

Scroll down the page to "Direct stream of requests from disk"

+1
source share

My experience with NSURLConnection classes was terrible. They are full of memory leaks.

After much trial and failure, I now use the compiled version of libcurl for the iPhone; it is much better, see here ..

http://www.iphonedevsdk.com/forum/iphone-sdk-development/4580-curl-anyone-using-their-app.html

+2
source share

All Articles