I am currently working on an app in which I want to store a UIImage
in one of my Core Data entities. I have read that in iOS 5 UIImage
now conforms to a protocol called NSCoding
, so conversion methods from NSData
are no longer necessary. I have set my image attribute to Transformable, and my program works wonderfully when I retrieve the image.
Is this a safe and secure method to store a UIImage
that will allow for future below 30 second migrations? Will it be good performance-wise? I have also read about the Binary Data attribute type, that allows files to be stored in the file system, rather than the database. If this is a better alternative, how would one implement it?