In iPhone App how to store UIImage
converted into NSData to sqlite table in BLOB datatype?
Is there any kind of binding needed(NSData
->Blob)?
or
While retrieving image stored in NSData
form in sqlite Blob datatype,
should I need to perform any task to convert that stored database in blob datatype to get back into NSData
form?
Please help and suggest.
I used something like this:
For saving as blob you can extract pointer and size of NSData using
[data bytes]
and[data length]
. And then bind to your BLOB row