Storing Images in Dexiejs

1,655 views
Skip to first unread message

fg.man...@gmail.com

unread,
Mar 12, 2016, 1:48:59 AM3/12/16
to Dexie.js
how can we use the dexie js wrapper to store my images in mobile database
for my mobile app to work offline

Luca Briggi

unread,
Apr 19, 2016, 3:01:36 PM4/19/16
to Dexie.js
You can store the image data in base64 encoding.
http://stackoverflow.com/questions/22172604/convert-image-url-to-base64

Carlos Pinto

unread,
Jun 11, 2016, 9:22:10 AM6/11/16
to Dexie.js
I am no DB expoert but i remember that back in MySQL people said that this can be a bit "clumsy".
So would this not be too heavy for Dexie too?

David Fahlander

unread,
Jun 11, 2016, 10:04:28 AM6/11/16
to Dexie.js
You can store ArrayBufferViews such as Uint8Array in Dexie. Blobs should work too but I haven't tested.
Reply all
Reply to author
Forward
0 new messages