NSData *data;
if (UIImagePNGRepresentation (image)
== nil) {
data
= UIImageJPEGRepresentatio n(image,
1);
}
else {
data
= UIImagePNGRepresentation (image);
}
if (UIImagePNGRepresentation
}