I want to upload audio data through chunked transfer encoding. My application reads audio buffer after each 0.5 seconds. As soon as I get data, I want to upload this data on the server using chunked encoding. Also I want to keep the connection open. So, after 0.5 seconds, when next buffer will be available, I can upload those data on same connection.
I have tried with NSMutableURLRequest and NSURLConncetion. But as soon as I start communication asynchronously, control goes to iOS and my delegates are notified. I want to upload more data using same NSURLConnection.
I have also tried with ASIHttpRequest. But I cant find a way to give data periodically and upload vi http chunking.
Please let me know if you have any standard way to upload data using transfer encoding chunked with iOS APIs.
Thanks in advance.