i'm currently trying to load a base64 img into my canvas
console.log('Change'); var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var image = new Image(); image.onload = function() { ctx.drawImage(image, 0, 0); }; image.src = stack[1].save; stack[1].save contains a valid base64 png img URL('data:image/png;base64,xxxxxx'), when i paste this URL into my browser i can see a valid img
The fact is that nothing changes and i dont have any error
If you could help me this will be awesome, thank's
image.error=console.error? And the string you providedURL(data...is not a valid dataURI.URL(part should not be there. Please try to be as complete and exact as possible.