ProfileImage.vue?edb7:79 Uncaught TypeError: canvas.toDataUrl is not a functio code example
Example 1: javascript todataurl
var image = new Image();
image.src = canvas.toDataURL();
Example 2: convert canvas to DataUrl and insert image in google sheet
function insertSiginSht(blb) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
sheet.insertImage(blb, 2,2);
}