I have asked a perfect question and got the solution. I posted it on the blog which is published on my company's website. I gave the link and explained the main components of the solution. It was even up voted by one user. Then also it was deleted by a moderator and I cannot undelete it. If I try, I get an error message: "A moderator has deleted this post and can not be undeleted."
How do I deal with this situation? Here is the link to my question: How to upload data using chunked encoding?
And my deleted answer was:
I found the way and uploaded it to my company's website.
Please refer it from here.
Search for "iOS: Unrevealed Better way of Communication" in the page and have the solution.
I have edited the answer so it now reads:
Please refer it from here.
Search for "iOS: Unrevealed Better way of Communication" in the page and have the solution.
Here you need to create the bounded pair of streams. Use input stream to receive the data from audio unit and out stream to pass the data on chunk. Now use these stream in connection object for communication with server. This will allow you to listen the data and upload the data at same time.