I have a binary data of a image like 137, 80, 78, 71, 13, 10, 26, 10, 0 as String. I want to display it in html as blob url. How do i convert the binary to blob url. I have tries doing these but i am not getting the image.
var binary = "137, 80, 78, 71, 13, 10, 26, 10, 0";
var blob = new Blob([binary], { type: 'image/png' });
var blobUrl = URL.createObjectURL(blob);
console.log(blobUrl);
document.getElementById("image").src = blobUrl;
<img id="image" />