[Free] KIO4_Base 64. Extension for File to/from Base64

Dear all, thank you for your help.
I'm developing an app in which the user can pick images from his phone with image picker, associate a tag and store it in a tiny WEB db.
After that, other users can see the images by recalling tiny WEB db.
All seems to run correctly.

My question is: why I read in this community that in order to store images in tinyWEBdb I need an encoding-decoding process like the one I obtain with Base64 extension?
Are there same pro-cons? (eg. I read a 30% increment in file dimension).
Thank you!

1 Like

Because TinyWebDB can only store text
Taifun

1 Like

But my app runs correctly. And I directly store images, not text.

1 Like

Nope, you are storing the path to the image on your device.

Thank you TIMAI2, but I have not the images on my device because I deleted them.
If I save a path, and the images are not on my phone, I shouldn't see them... is it right?
Please I need to understand :slight_smile:

On your device
Now test it on another device to display the stored image

Taifun

Could you kindly give me the right blocks combination to use for my application?

The first post of this thread links to this example
What about adjusting these blocks to your needs?

Taifun

Thanks, I will try it!

What about point n 7 here?

What about it ?

Do you think following solution is ok?

Have you tested your blocks ? Do they work as intended?

If not, what does happen, what errors do you get?

Hi @TIMAI2, my blocks seems work, also in another phone.
But I would like to be sure (do you remember, before my app also worked, but I saved only link to images, not images :slight_smile: ).
I ask this, because in other examples I see blocks with a path text... I have to use it?

Because you are using ImageToBase64 you do not need a path.

Thank you very much @TIMAI2!!!

Hi im trying to use this extension to take an image from the user's photo gallery and convert it to base64 so that gemini can analyze it. I believe something is wrong with the conversion because the app never analyzes the image. is this the correct block to use for this process?

bang ajarin tolong, aku eror waktu mau ambil base64 di realtime database

No need to post in two places, we will stay with your request in the other topic: