Thanks david_david
I have tried that and it doesnt seem to work for my purposes. My Image needs to be a bitmap before filling the byte array. Does converting the Image to a UIImagePNGRepresentation do that??
Here is the code I am using at the moment:
NSData *imgData = UIImagePNGRepresentation(image);
NSUInteger len = [imgData length];
Byte *byteData = (Byte*)malloc(len);
memcpy(byteData, [imgData bytes], len);
//do some stuff with the bytearray later
|