Using PhoneGap(Cordova), Am trying to get base64 image data of the photo chosen from the photo library.
I could do that.. when the photo is captured from camera, Wi
You just need to tell it to pick from the photo library:
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL,
sourceType : Camera.PictureSourceType.PHOTOLIBRARY
});
Please be aware that loading a large base 64 encoded image may just cause and out of memory error in your app. Wherever possible use the FILE_URI to get your photo.