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

308
Views
How to View base64 string in a pdf or image in react

I have a base64 string and i want to view it in my reactjs website. I used tag and tag and both are working fine in development, but in production the file does not load.

i tried both and both work in development and are being rendered but in development when i upload my website to the server it does not load

Why is that?

Here is my code:

   //documentContent is my base64 string
 <embed src={`data:application/pdf;base64,${documentContent}`} /> 

 <object data={`data:application/pdf;base64,${documentContent}`} type="application/pdf" width="100%" height="100%"/>
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!