Skip to content

Tag: sqlite

sqlite3 – insert – javascript object as values

What is the easiest solution to use a javascript object as values for a sqlite3 insert? The following code does not work. Answer First of all you need to write the SQL correctly. To insert into the columns name, age, language, you need to write the SQL like this: And pass the values of the 3 columns as parame…

Cordova SQLite save BLOB

I have a problem with Cordova SQLite plugin. How can I save BLOB image to SQLite? I have BLOB object in JS: And I trying to save it And when i trying to get this image: I get this string: How can i convert it to BLOB again? Also i trying to save images in base64, but i can’t save