0

How can I view pdfs and images in react which is base64 format. I am trying to use same component for all formats.

enter image description here

Bertug
  • 915
  • 2
  • 10
  • 26
  • Images: https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html PDF's: https://stackoverflow.com/questions/11551197/mime-encoding-of-a-pdf-file-in-an-html-page – KiprasT Jul 27 '21 at 09:41
  • but i want same component or library for pdf and images(jpeg etc.) @KiprasT – Bertug Jul 27 '21 at 09:51
  • The LEADTOOLS SDK (Disclaimer: I work for the vendor) has an [Image Viewer]( https://www.leadtools.com/sdk/display) that can be used to load and display image and PDF in ReactJS (After decoding them from base64). You can find a tutorial [here]( https://www.leadtools.com/help/sdk/v21/tutorials/html5-reactjs-display-images-in-an-imageviewer.html) showing how this can be done with the toolkit hit and if it interests you, a free evaluation is available here [here](https://leadtools.com/downloads). – Hussam Barouqa Aug 19 '21 at 15:19

0 Answers0