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 came
Now when you opens the camera, you implement the following method
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo {
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
}
in the above method add the following code :--
NSData *imageData = UIImageJPEGRepresentation(img, 1);
then call the method of saving data to database.
Make sure you take the field type as blob in database.
Hope it helps.....