Getting exception on Microsoft Edge browser when trying to convert Html canvas element to blob. Everything works great on normal browsers. Exception:
SCRIPT438: Object doesn't support property or method 'toBlob'
Html snippet:
<canvas id="cnv" width="640px" height="520px" style="display: none"></canvas>
Javascript:
var files[];
var canvas = document.getElementById('cnv');
canvas.toBlob(function (blob) {
files.push(blob);
}
}, 'image/jpeg', 1);
I get this exception right when I call toBlob
method. Are there any ways to teach Edge blob converting?
I am using :
Microsoft Edge 41.16299.15.0