Hello all,
I am using MailComposer available in iPhone sdk3.0.
I am using the following code to add image using html to my email body. It displays the image properly in mail body. But when I try to send it. It breaks leaving message in the log , No image found. Can anyone help me regarding this where am going wrong. Like I also tried attaching the images, but it wasnt working. It does display the images in the composer but breaks while sending.
UIImage *tempImg = [self getSmallImage:[dbPersistenceObj getImage:[[imageIdArray objectAtIndex:i] intValue]]];
NSData *imageData = UIImageJPEGRepresentation(tempImg,1);
NSString *encodedImage = [self base64EncodingWithLineLength:[imageData length] data:imageData];
emailBody = [emailBody stringByAppendingFormat:@"<b><img src='data:image/jpg;base64,%@' alt='64 bit image'/></b>", encodedImage];
tnx.