Storing and synchronising images with iOS
===

I have an application that is written in `Monotouch` and one function that it offers is taking photos that are then synchronized back to a `Sybase Sql Anywhere` database on our server. This mechanism is working fine on the `Windows` version of our application, but on `iOS` we have hit technical issues pertaining to saving the photos in the `Sybase Ultralite` database on the iPad or iPhone. Very briefly, the photos are saving correctly if we set the resolution to VERY low on an iPhone, but failing if the resolution is higher. The issue is related to the size of the image data that is being saved. On an `iPad`, the photos are generally larger than those taken with an `iPhone`, so saving to the database is failing more often on `iPad` than `iPhone`.

Anyway, that is just some background to our situation and the actual `Ultralite` issue is not the focus of this question. What I am looking for here is _alternative solutions_ (`Objective-C` or `Monotouch`) for providing this functionality. I immediately think about saving to a local database and then replicating the photo data back to the server because I have a lot of experience with database replication. But maybe there is a better way of solving this?

The solution must allow the application to:

- Save a photo so that it is available locally (even after shutdown of the application or restart of the device)
- Must allow photos to taken and saved offline, because an internet connection is not always available.
- Either synchronize the image data back to the server database or synchronize a URL back that the application in the back-office can retrieve the photo. Obviously, at the point of synchronization the application must be online.

Can anyone suggest solutions or API's that might allow me to provide this functionality without having to synchronize the image data? I am thinking along the lines of maybe saving the image to the cloud and then synchronizing only a URL that can be used in the back-office to retrieve the photo. Any suggestions?