Hello,
Thank you a lot for your reply.
I got the point.! When I try to retrieve the NSData from the image I get that issue of the corrupt JPEG.
NSData *data =UIImagePNGRepresentation(sPreview.image);
[data writeToFile:filePath options:NSDataWritingAtomic error:&error];
[m_view vAddImage:imgPath frame:frame path:filePath page:page];// the function of the last post
However with
UIImageJPEGRepresentation(sPreview.image, 1);
I don't get that problem.But it doesn't keep the transparency of the image.
Any idea how I can add a bitmap with keeping its transparent background ?
Thank you for your help