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

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:


The KIO4_Base641.CanvasToBase64 cases an error with the .apk saying Runtime Error buildCache Why is this happening?

Probably it is a size issue of the canvas? How large is it? Which device and Android version are you using for your tests? Did you try another device?

To find out more about the runtime error use logcat

Taifun

See here for a workaround solution (read full topic):