Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

259
Visualizações
Display blob image from DB to Reactjs

i'm using Springboot, MySQL and ReactJS for this. I'm trying to create a second hand marketplace where users can place ads etc.

At the moment a use can create an add and also add images associated with it, these images get stored in MySQL as a BLOB type.

I have functionality to create an advert and when a user selects an image to upload, the previewed images is displayed on the screen using URL.createObjectURL(), i'm unsure how to do this so that it displays the images associated with the advert (how to get the url like this) from the database.

blob:http://localhost:3000/16d55ccc-15eb-44fd-b0c2-e8f508209e37

What i'd like is that when a user clicks an advert, it loads the blobs/images from the database as images and displays on the client UI.

This is the table with fields that stores images

This is the response im getting (Ad info + image that were added which is the fileUploads field)

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda