cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph S Theart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5838) Android 4.4 - Path returned from Camera plugin FILE_URI is not readable
Date Thu, 13 Mar 2014 20:35:43 GMT

    [ https://issues.apache.org/jira/browse/CB-5838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934009#comment-13934009
] 

Ralph S Theart commented on CB-5838:
------------------------------------

this absolutely does not work...need the file `content://media/external/images/media/`

> Android 4.4 - Path returned from Camera plugin FILE_URI is not readable
> -----------------------------------------------------------------------
>
>                 Key: CB-5838
>                 URL: https://issues.apache.org/jira/browse/CB-5838
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>    Affects Versions: 3.3.0
>            Reporter: Lindsey Simon
>            Assignee: Andrew Grieve
>
> 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);



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message