i'm trying encode the document generated in the attached code, but nothing happens, not generate error but neither encodes the file, and the ajax request is never executed what is the correct way? html2canvas(document.getElementById("workAreaModel"), { onrendered: function(canvas) { var img = canvas.toDataURL("image/png"); var doc = new jsPDF("l", "pt", "letter"); doc.addImage(img, 'JPEG',20,20); var fileEncode = btoa(doc.output()); $.ajax({ url: '/model/send', data: fileEncode, dataType: 'text', processData: false, contentType: false, type: 'GET', success: function (response) { alter('Exit to