Angular, Firebase Realtime Database, json image

Asked

Viewed 38 times

-1

I have a mobile application that stores the photos in a database and sends them in json format to a Realtime Databse from Firebase.

inserir a descrição da imagem aqui

I’m developing a web application with Angular, I can get the data correctly, but I can’t display the image.

I tried something like:

<p>Foto:</p>
  <img class="imgLoja" src="data:image/png;base64,{{modalData.FOTO_FACHADA}}"/>

But the result I got in the browser was: inserir a descrição da imagem aqui

I did a little research, but I can’t find a solution. If anyone can help me, I’m grateful.

Att.

Leonardo Freitag

1 answer

0

The matter has been resolved. The problem was at the time of conversion, was not in Base64.

Att.

Leonardo Freitag

Browser other questions tagged

You are not signed in. Login or sign up in order to post.