avi_770
(avi_770)
May 25, 2022, 11:13am
#1
Hello everyone, Hello, I let the user select an image, and I did that at the end he will save the image in tiny db and set the image as a background image for the screen, and it does not work! These are my blocks:
Please search the forum before creating a new topic instead of spamming it as most questions such as yours have already been answered.
avi_770
(avi_770)
May 25, 2022, 12:07pm
#3
Well, 1. I’m sharp here, so that’s why I ask, I forget to do a search.
2. I did a short search and came across it and it did not help me !:
I was searching for many ways to save the image in TinyDB, so that we can show image later in our app. Well, it is not possible to save the image in TinyDB as TinyDB only saves strings and integers but I found a way which will work for you.
We use images in two ways in our app:
i) Image from assets.
ii) Image from internal storage which is available in our mobile.
While image from assets are easy to save in tiny db, as we can just store name of file loaded in the asset. See the blocks…
And I would be happy to help anyway …
Try like this and see if it works
avi_770
(avi_770)
May 25, 2022, 7:59pm
#5
It works.
But I want to keep the image itself, not the path!
Shreyaa
(shreya )
May 26, 2022, 1:17am
#6
Convert image to base64 string and save to tiny db
1 Like