说明:iOS开发调用系统相机拍摄的照片的格式为jpg格式
NSData *data = nil;
if (UIImagePNGRepresentation(image) ==nil) {
data = UIImageJPEGRepresentation(image,1);
}else {
data = UIImagePNGRepresentation(image);
}
说明:iOS开发调用系统相机拍摄的照片的格式为jpg格式
NSData *data = nil;
if (UIImagePNGRepresentation(image) ==nil) {
data = UIImageJPEGRepresentation(image,1);
}else {
data = UIImagePNGRepresentation(image);
}