title: Ionic Capacitor cordova plugin unable to write image to library on Android
body: <p>I am trying to use <a href="https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner" rel="nofollow noreferrer">cordova-plugin-document-scanner</a> with Ionic Capacitor for Android, but after the image is captured and when image crop UI should be displayed, it just returns to the capture screen again. This is the <a href="https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/82" rel="nofollow noreferrer">issue on the github repo</a>. This is what seems relevant in the logcat console:</p>
  <p><code>2020-08-03 13:26:05.320 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)4 dur=8 res=0x1 s={false 0} ch=false 2020-08-03 13:26:05.321 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: stopped(false) old=true 2020-08-03 13:26:05.328 27707-27707/si.test.app W/System.err: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)</code></p>
  <p><code>2020-08-03 13:42:50.749 1278-1278/? E/Util: writeImageDataToRequestedUri : failed to make directory or the directory already existed.</code></p>
  <p><code>2020-08-03 13:42:50.760 1278-1278/? E/Util: writeImageDataToRequestedUri : Returned because outputStream IOException.</code></p>
  <p>This is my configuration:</p>
  <ul>
  <li>Device: Samsung Galaxy S10e</li>
  <li>OS: Android 10</li>
  <li>@capacitor/core : 2.3.0</li>
  <li>@capacitor/android: 2.3.0</li>
  <li>cordova-plugin-document-scanner: 4.2.5</li>
  </ul>
  <p>Is it possible, that Cordova and Capacitor have different paths to files on the device? Where could I fix that? Any help greatly appriciated :)</p>