How to display base64 pdf in angular template file

2.6k views Asked by At

I have a base 64 encoded string, I want to display it on my angular template file.

1

There are 1 answers

0
Fedor Patutinskiy On

Try

<img [src]="yourEncodedStringVariable"/>

where yourEncodedStringVariable= data:image/png;base64,[your base 64 string]