String to image transformation failed

I am creating an app where the viewer either selects an image or capture a photo and this photo should be displayed in the same screen then transmitted to another screen and displayed there. I first converted the photo or image selection to string and use tiny db to transfer it to another page then display it in another screen, but it wasn't displayed
6
7
8

9

This is the code in the other page
5

You do not have to convert a picture to a string to display it on another screen ..

From your example just store the image as it is in TinyDB (this will store the path to that image)
And in the other screen read the stored image from TinyDB and use the Image.Picture property to display it.

Taifun

1 Like

I agree with @Taifun ^^^^

If you really want to do a base64 conversion it might be easier to use the image component blocks in the extension.....