0
Hello
i am trying to put data in json an image and then in html appear a title a location a text and an image, but I already tried url() and src but I can’t put it there...
[
{
"titulo": "Exemplo",
"localizacao": "Rua de Exemplo",
"Texto": "Texto grande de exemplo para usar como teste",
"imagem": ,
}
]
the goal and appear like this in html
TITLE localization large sample text image
but within a div, my only doubt is whether there is any way to put an image inside the json because I will use json as a database
yes, you can have in json the image link or the bytes of the image, just convert to
base64
which is then simple to do the opposite process and include in the div– Ricardo Pontual