You do not need to know or care about what the internal representation of the images is in the camera roll. The methods you mentioned UIImageJPEGRepresentationand UIImagePNGRepresentationreturn the images of the camera roll image. It is up to you to decide which view you want to use.
Summarizing:
NSData * pngData = UIImagePNGRepresentation(originalImage);
NSData PNG.