问题
I have a base 64 encoded string, I want to display it on my angular template file.
回答1:
Try
<img [src]="yourEncodedStringVariable"/>
where yourEncodedStringVariable= data:image/png;base64,[your base 64 string]
来源:https://stackoverflow.com/questions/59500310/how-to-display-base64-pdf-in-angular-template-file