NeutrinosPlatform / cordova-plugin-document-scanner

cordova plugin for document scan
https://www.neutrinos.co/
MIT License
85 stars 60 forks source link

scanned image uri return unknown #44

Closed soban5757 closed 5 years ago

soban5757 commented 5 years ago

when i am done with the scan process i got this URI file:///storage/emulated/0/Pictures/1548222903280.jpg and this URI got nothing

scanDocument(){

this.plt.ready().then((readySource) => {

  scan.scanDoc(0, this.onSuccess, this.onFail);
  console.log('Platform ready from', readySource);

});

}

onSuccess(imageURI) { // var image = document.getElementById('myImage'); this.image = imageURI; console.log(imageURI);

}

onFail(message) { alert('Failed because: ' + message); }

ChrisTomAlx commented 5 years ago

Hey @soban5757

I was away for a while, sorry about the delayed response. So if I understood you correctly, when you console log the URI you get a proper file URI string but the image is empty.

If that is true then I have a few questions.

  1. How did you find out the image was empty?
  2. Have you tried going into your file explorer and searching for the image?

Cheers, Chris Neutrinos

ChrisTomAlx commented 5 years ago

Closing because there hasn't been any response

Cheers, Chris Neutrinos