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

489
Views
Js code to open base64 pdf is failing in chrome for pdf of size > 1.5MB

I have my JS code link.href = 'data:application/pdf;base64,' + data; where data is base64 string which opens properly in firefox but not in chrome when size of pdf file is huge > 1.5MB. Can someone provide solution to handle this issue.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Chrome doesn't allow opening data URLs for security reasons. You might be able to open the link using "Open in new tab" (right click menu).

As a work around, if possible, you can force the user to download the file using <a download="example.pdf" href= data:URL >

Or try using blob:URL instead of data:URL. This might help.

about 4 years ago · Juan Pablo Isaza Report
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!