I want to display base 64 image in MIT App Inventor which is stored in FIRBASE REALTIME DATABASE

Kindly help me out, since i cannot find exact solution for my problem.
Actually, i want to display image that is stored in base 64 form on Firebase realtime database in MIT APP Inventor.
Please help me out with

  • which extensions should be used.
  • block coding

The simplest way is to download as image and retrive it witn an image component,or you can use a webviewer to display base64 image

1 Like

You can use the first extension here to display the base64 in an image component:

image

or as Marco has indicated you can use a webviewer to display the image:

image

1 Like

Thank you so much for replying. Highly Appreciated!
Can you please tell me how to set and view picture in image component.
Please anyone paste here the snippet of Whole block diagram of this.
I do not know whether I am doing right or wrong.
Thank you in advance.

I showed you the block required above. You need to import the extension.

1 Like

Your Button1 Click event assumes the data will arrive from FireBase instantly after you ask for it. That's not the case.

You need the FireBase Event block that fires when data arrives from Firebase, to capture the 64 bit encoded data into a global variable, and initiate the picture conversion and display.

2 Likes

(added to FAQ)

1 Like

A bit more hand holding for you:

Assumes you have a suitable base64String for an image stored under the tag imageBase64 in your Firebase project.

Using webviewer

image

Using base64 extension

image

1 Like

Thank You So mcuh. Highly appreciated for your concern and time that you have given to.
This block of code seems excellent, but why this is showing error in in my app.

the screenshot of my firebase which is having image as base 64
image

and you can also check my block coding that i got from you @TIMAI2

here is error

Well, as you should be able to see you already have the datauri with your base64String

image

image

my code blocks are adding the datauri to a base64String.

Remove the datauri from the blocks.....