0 points

Convert Base 64 String to Image


dashboard

Mon Sep 28 2020 15:52:48 GMT+0000 (UTC)

Posted by @dave #javascript

var image = new Image();
var base64 = 'iVBORw0K...'
image.src = `data:image/png;base64,${base64}`;
document.body.appendChild(image);
content_copy Copy

In an Angular application