iphone app photo upload to server from app threads

Posted by user290380 on Stack Overflow See other posts from Stack Overflow or by user290380
Published on 2010-03-10T09:48:25Z Indexed on 2010/03/16 16:51 UTC
Read the original article Hit count: 197

Filed under:

I have an app that needs to upload a least 5 photos to a server using API call available with the server. For that I am planning to use threads which will take care of photo upload and the main process can go on with the navigation of views etc. What I cant decide is whether it is OK to spawn five separate threads in iphone or use a single thread that will do the upload. In the later cases obviously it will become quite slow. Basically an HTTP POST request will be made to the server with the NSMutableURLRequest object using NSCOnnection.

More threads mean more complexity and sync issues, but I can try to write code as neat as possible if it means better performance than a single thread which is simple but is a real stopper if performance is considered. Anybody with any experience in this kinda app. ??

© Stack Overflow or respective owner

Related posts about iphone