I’m trying to add a picture from the gallery in my app, if I pick the image from my device internal storage my code works fine, but if I pick an image from my External Storage (SD) after I crop the picture instead of showing the image in the space reserved my app just restart.
This is the code I’m using to get the picture from my Storage
Camera.getPicture({
destinationType: Camera.DestinationType.DATA_URL,
targetWidth: 600,
targetHeight: 600,
sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM,
mediaType: Camera.MediaType.PICTURE,
correctOrientation: true,
saveToPhotoAlbum: false
}).then((imageData)=>{
this.base64Image = "data:image/jpeg;base64," + imageData;
}, (err)=>{
console.log(err);
})
This is my system information:
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
OS:
Node Version: v4.2.1
Thanks in advance for your time and help