I have an api that returns a byte[], i want to display it as an image in my front application, so i used data url to display the image
this.cardBackgroundService.getImage(event.data.entitlementCertificateNumber, "C003").subscribe(data => {
this.image = data;
console.log(this.image);
});
<img src="data:image/png;base64,{{image}}"/>
the problem is when i display the response of the api in the console, it has this format and it doesn't display as an image
�PNG �Ou���j�000000000H��a
��a````````��a
��a��a```````��a
��a��a````````��a
��a��a```````��a
��a````````�.r�����X��V��QS��\�ۂ���F�`�{lhXnJU��s��iiǯ�O1�;������