samedi 2 janvier 2016

How can i insert an image(NSData) in sqlite using DBManager iOS objective-c

Person.image=data;

Person.image is of type NSData,it get data and i can show the image but i can't insert the image in sqlite That code doesn't work

NSString* requete2=[NSString stringWithFormat:@"insert into Person values('%@','%@','%@')",Person.name,Person.lastName,Person.image]; [_DB executeQuery:requete2];

DB Error: unknown error can some one give me a solution or an other method to insert it

Aucun commentaire:

Enregistrer un commentaire