Best way to save image data
Hello, I'd like some opinions on an issue I'm facing right now during development. Here's how it goes - user selects an image from the camera/albums/camera roll and it is archived with a bunch of other user-inputted data. Now, what would you say is the best way to handle this? The way I'm doing it now is to save the .jpeg representation to the application's directory and then archiving the path to the image in a database. However, this seems sort of redundant, considering that the image is already on the ipod/iphone in some representation - is there any way to archive a persistent representation of an UIImage object or access the file it was generated from at a later date?
The native "contacts" application does this, but I suspect that it's just apple using the actual paths to the images behind the scenes. I'd like to keep this as SDK-friendly as possible I think...
|