To save my canvas I call canvas.toBlob and upload it via ajax post. Now when I load my page I'd like to retrieve it from the database. I been googling for 40mins and can't figure out how to put it on a page where the canvas can load the png image. The closest I found was the below and doesn't seem helpful. I can't figure out how to load that data as a canvas image or imagebitmap
var png_blob = new Blob(new Uint8Array([@binaryText]), { type: "image/png" });
I didn't do anything to confirm but the data does appear to be a png image due to me noticing the filesize being different (seems compressed and not 'raw'). How do I get a PNG binary back into a canvas?