I am creating an application in which I added a blog area. But I want to save the thumbnails of my posts and also the html page. Here is how everything works:
If the mobile is connected to internet my app requests and gets three lists(Title, Subtitle, Thumbnail) it stores the title subtitle and the related post’s data with as dictionary using tinyDB.
But is there no option to save images or html(containing css and images) using the same way?
Thank you in advance for your help!
But I want to show them offline too.
I’m saving urls now, but I want to make it more faster even with slow internet or no internet.
Is there any way to store images as cache.
You can use extension “image to base64”.
First encode image and save to tinydb. If you wanna use image decode text from tinydb.
I use this extension to save image from camera and convert to text(base64).
store it in a directory, which starts with a dot, for example ./myHiddenDirectory
or store it in a directory of your choice but start the image name with a dot, for example .myHiddenImage.jpg