views:

133

answers:

1

I am coding an iphone application where images are transferred from one iphone to another using bluetooth. can anyone tell me how to archive an image and send it to another iphone Then unarchive the image back . Archiving the image directly using NSKeyedarchiver doesnt work. Can anyone post sample code

+3  A: 

You can turn UIImage objects into NSData representations using the Image Manipulation function UIImageJPEGRepresentation or UIImagePNGRepresentation.

You can turn the NSData representation into a UIImage using the UIImage convenience method imageWithData: or initializer initWithData:.

gerry3