这是我转换图像的代码,
CGSize newSize1=CGSizeMake(720.00, 576);
self.imageData = [PDFImageConverter convertImageToPDF:image1 withResolution:300 maxBoundsRect:CGRectMake(0, 0, 194, 154) pageSize:newSize1];
largerbtn.selected=YES;
smallerbtn.selected=NO;
CGSize newSize=CGSizeMake(194, 154);
UIGraphicsBeginImageContext(newSize);
[image1 drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
//NSData *imageData1
imageData1=UIImageJPEGRepresentation(newImage, 1.0);
//NSString *encodedString
encodedString= [Base64 encode:imageData1];//crashed when it reached here
NSLog(@"%@",encodedString);
应用程序在达到 base64 转换时崩溃,我的代码有什么问题。请帮我解决这个问题。