I am trying to transfer the photo image data accessed from the Photos framework to my external accessory. I am able to transfer the data. However, I am not able to open the file correctly.
I access the data of the image using the NSData in the PHImagemanager. I am transferring the image to an external device (SD card using the External accessory protocol). The transfer takes place successfully. I can see the ASCII contents of the original file and the transferred file and they both look the same. But I cannot open the file.
I was thinking that do I have to do some processing on the data I receive through NSData to open the image successfully?