I get base64 encode data from the server which I need to show a preview of that pdf file in new tab on click. File can be in pdf with size 6 MB. In the Url on open it is turncated.
<a href="data:image/png;base64,...">preview</a>
How Can I show the base64 encode data in a new tab?
I found this Show base64 encoded data in new tab Rails which is not clear yet.
I am using reactjs and javascript
1