Database image to base64 via Javascript
Hi I am trying to pull images from my database into base64 to store in an indexeddb locally via a javascript call. I'm using the code below to pull the image but the data isn't returned in anything I can work with.
get_image_from_db.execute({
query: {
file_name: flight_1['_id']
},
complete: function(data) {
console.log(data.responsText);
}
Code: Select all
}); Thanks!
Andrew