The current solution is i need to save image and then load attachment with file is it possible to load from UIImageView directly? any idea?
Attachment is set as a NSData object and you can get it from UIImage object directly using one of the following functions:
UIImageJPEGRepresentation
- for image in JPEG formatUIImagePNGRepresentation
- for image in PNG format