Hello,
I’m pretty new to QML and have never learned C++. Since my app is pretty simple (no heavy calculations necessary), I’ve been using only Javascript. However, I can’t find anything online about using Javascript to store images to a database and retrieving them. Since users of my app at some point may want to add an image to a part of the app, I thought I should let them choose the image then store it as a BLOB in the SQLite database, so if the image is removed from their device at a later time, it will still be available to the app. Is storing the image as a BLOB appropriate? Or is it possible to store it another way?
Once the image is stored, how can it be retrieved? Is C++ necessary or is there a way to use Javascript only?
I see the component in Felgo’s ‘Showcase’ app that loads images but how then can I store them so the user has access even when offline or if he deletes the image from his device?
Thank you for your help,
Eric