JavaScript Todataurl
var image = new Image();
image.src = canvas.toDataURL();
TC5550
var image = new Image();
image.src = canvas.toDataURL();
var dataURL = canvas.toDataURL();