I have a problem with Cordova SQLite plugin.
How can I save BLOB image to SQLite?
I have BLOB object in JS:
Blob:{
size: 96874
type: "image/jpeg"
__proto__: Blob
length: 1}
And I trying to save it
INSERT INTO images (img) VALUES (?);
And when i trying to get this image:
SELECT img FROM images
I get this string:
img: "{"type":"image\/jpeg","size":96874}"
How can i convert it to BLOB again?
Also i trying to save images in base64, but i can't save big images to SQLite, because base64 string is very huge. (It's works with small images)
Please, help me and sorry for my English.
Aucun commentaire:
Enregistrer un commentaire