Hi i am trying to crop and upload an image to firebase, i have the path of the file but i cant convert the image to File or Blob. somebody has a function for this ?
I am using the plugn cordova-plugin-crop.
this.cameraService.getMedia().then((x) =>{
alert('then0.4 :' + x);
try{
let a = this.dataURItoBlob(x); // this function is not working
var uploadTask = this.storageRef.child('images-profile/'+this.email).put(a);
});
// Thanks in advance for any help you are able to provide ;)
Hi Toncs
Can I consult your project, I am currently looking for a solution to upload image to firebase but not yet, I use camera plugin, in my code I don’t know about cameraSevice?