Is there a way to generate a blob or an arrayBuffer with TypeScript when using the Camera.getPicture(options) method?
I am currently working on an Ionic 2/Cordova project.
var options = {
quality: 90,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
mediaType: Camera.MediaType.PICTURE
};
Camera.getPicture(options).then((imageData) => {
File.resolveLocalFilesystemUrl(imageData).then((fileEntry: FileEntry) => {
})
});
Any help would be greatly appreciated. Thank you!