Closed igorissen closed 9 years ago
Hi,
I just found your library and when I try to test it with an image I got the error in the subject. I want to add it in my AngularJS application.
function setFiles(element) { var showPicture = document.createElement("img"); console.log(element.files); var URL = window.URL || window.webkitURL; showPicture.onload = function (event) { JOB.DecodeImage(showPicture); URL.revokeObjectURL(showPicture.src); }; showPicture.src = URL.createObjectURL(element.files[ 0 ]); } JOB.SetImageCallback(function (result) { console.log(result); });
Any idea ?
Thanks.
I found my mistake. I'm calling JOB.init(); instead of JOB.Init();. Now my code is working great.
JOB.init();
JOB.Init();
Thanks for your work.
Hi,
I just found your library and when I try to test it with an image I got the error in the subject. I want to add it in my AngularJS application.
Any idea ?
Thanks.