I have post(upload) image to given database using file URI not data_url because it takes too much memory but I don’t know how to upload please help me with the code.
.ts
getPic(){
const options: CameraOptions = {
quality: 100,
sourceType: this.camera.PictureSourceType.SAVEDPHOTOALBUM,
destinationType: this.camera.DestinationType.FILE_URI
}
this.camera.getPicture(options).then((imageData) => {
this.success = 'getting image is successful';
this.Image = imageData;
}, (err) => {
this.err = err;
});
}