title: Constructor of class 'Blob' is private and only accessible within the class declaration
body: <pre><code>import { Blob } from '@firebase/firestore-types';
  
  
  @Injectable()
  export class ImagehandlerProvider {
    nativepath: any;
    firestore = firebase.storage();
    imagestore: any;
  
    constructor(public filechooser: FileChooser, public blob: Blob) {
      console.log('Hello ImagehandlerProvider Provider');
    }
  
    uploadimage() {
      var promise = new Promise((resolve, reject)=&gt; {
        this.filechooser.open().then((url)=&gt; {
          (&lt;any&gt;window).FilePath.resolveNativePath(url, (result)=&gt; {
            this.nativepath = result;
            (&lt;any&gt;window).resolveLocalFileSystemURL(this.nativepath, (res)=&gt; {
              res.File((resFile)=&gt; {
                var reader = new FileReader();
                reader.readAsArrayBuffer(resFile);
                reader.onloadend = (ent: any) =&gt; {
                 // var imgBlob = new Blob([ent.target.result], {type: 'image/jpeg'});
                 var imgBlob = new Blob([ent.target.result], {type: 'image/jpeg'});
                  var imgStore = this.firestore.ref(firebase.auth().currentUser.uid).child('profilepic');
                  imgStore.put(imgBlob).then((res)=&gt; {
                    alert('Upload successful');
                  }).catch((error)=&gt; {
                    alert('Upload failed' + error);
                  })
                }
              })
            })
          })
        })
      })
    }
  
  }
  </code></pre>
  
  <p>The code above has a simple problem. I am on the 3rd day learning ionic-angular, I want to implement image upload, and I think by default angular makes all imported classes private. I have searched  online how to Blob is implemented and have sen that it is by instantiating the Blob class, which I did, since the class is made private by default it's not accessible so I have to create a public property in the constructor of this class. In short way, without creating this property I am getting this error:</p>
  
  <pre><code>[ts] Constructor of class 'Blob' is private and only accessible within the class declaration. 
  </code></pre>
  
  <p>How do I make use of the Blob class</p>