I have a camera application in which when I click on the camera button the camera opens and user can take picture from camera or from photo-library.
I have done the camera part such that when user clicks on the button the camera opens and he can take a picture. The problem is the picture the user has taken from the camera must be saved into SQLite database. I am stuck in this part. Could anybody help me on how to save image taken from camera ?
If you are using the
UIImagePickerController, you can get the image in itsimagePickerController:didFinishPickingMediaWithInfo:delegate method. The image you get is anUIImageobject.Now
NSDatahas a methodbyteswhich returnsvoid*. This will point to a C type array which should play well with SQLite.