0
我有一些图像,我想将其存储在sqllite3
数据库xcode
。但是当我将它转换为blob格式时,它显示出一个很大的字符串存储在数据库中。请告诉我怎样才能解决这个问题,并向我推荐该特定方法的代码。我使用的代码是如何将图像存储在sqllite3数据库中
image = [info objectForKey:UIImagePickerControllerEditedImage];
[image_border setImage:image];
imgdata1 = UIImageJPEGRepresentation(image, 1.0f);
NSLog(@"%@",imgdata1);
无论如何压缩它。
使用本http://stackoverflow.com/questions/5039343/save-image-data-to-sqlite-database-in-iphone – 2014-09-23 10:58:46
你得到任何类型的错误? – abhishekkharwar 2014-09-23 11:16:00
Blob不是字符串。你的代码有问题。 – 2014-09-23 11:23:09