Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

258
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!