How to display base64 pdf in angular template file

Try

<img [src]="yourEncodedStringVariable"/>

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

Leave a Comment