I have a quite large gps navigation app and during track recording user is allowed to take a photo. So, once I've got an image I store it in sqlite database (or file, doesn't matter). Also, there is NSOperation continuously running in background, so whenever it discovered not uploaded photo it sends HTTP POST request with this photo. When it has done with upload it checks for a new one, etc. If no photos are in 'queue' it pauses NSThread (background one) for some time and then checks again.
|