Nicolas Bernier created CB-10676:
------------------------------------
Summary: Cordova camera 2.1.0 getting error "Error retrieving
image." with Cordova 6.0.0 on Android
Key: CB-10676
URL: https://issues.apache.org/jira/browse/CB-10676
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Camera
Affects Versions: 2.1.0
Environment: Android 5.1.1, Samsung Galaxy S6
Reporter: Nicolas Bernier
I want to use the Cordova Camera plugin (version 2.1.0) to get picture from the
pictures gallery of my users.
I tested it on my Samsung Galaxy S6 with Android 5.1.1. I do not know yet if I
get this error on other OS.
These are the options I use with the plugin:
{code:javascript}
var options = {
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM,
allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 400,
targetHeight: 400,
saveToPhotoAlbum: false
};
{code}
However when I select a picture from my gallery, I immediately get the error
"Error retrieving image." from the cordova camera plugin with no other
indications.
If I use the version 1.2.0 of the plugin, I do not get the error and I am able
to upload the picture afterwards.
I think it is a matter of permission but I have no idea what I should change to
make the plugin works.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]