Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5838

Android 4.4 - Path returned from Camera plugin FILE_URI is not readable

    XMLWordPrintableJSON

Details

    Description

      I'm calling the plugin like so (pasted below). When I take the file uri and try to load it into another interface, like the ExifInterface I get the following error:

      E/JHEAD ( 6734): can't open 'file:///storage/emulated/0/DCIM/Camera/1390266145786.jpg'

      var cameraOptions =

      { quality: 100, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, allowEdit: true, encodingType: Camera.EncodingType.JPEG, targetWidth: 800, saveToPhotoAlbum: true }

      ;
      navigator.camera.getPicture(
      .bind(this.onPhotoSuccess, this),
      .bind(this.onPhotoError, this),
      cameraOptions);

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              elsigh Lindsey Simon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: