views:

23

answers:

0

hi, when i am sending image from my iphone app to blackberry mobile configured mail-ID. the alert is i am getting that image not supportable formate. But i used jpeg formate, because all blackberry mobiles support jpeg formate only. please help me how to overcome this issue. here is the sample code i am using

    NSData *myData = UIImageJPEGRepresentation(shareImage, 0.8);

    NSString *tempFilename= [NSString stringWithFormat:@"eWilnerframePic%@",tempStr ];
    [picker addAttachmentData:myData mimeType:@"image/jpeg" fileName:tempFilename];

thanks in advance.