title: How to upload the image to firebase after reducing Image size react native
body: <p>I am using image picker for picking image from my phone .image picker provide the response </p>
  
  <p>{height: 33, origURL: "assets-library://asset/asset.JPG?id=9F983DBA-EC35-42B8-8773‌​-B597CF782EDD&amp;ext=JP‌​G", longitude: -17.54892833333333, fileName: "IMG_0003.JPG", uri: "file:///Users/mac/Library/Developer/CoreSimulator/…temfiles‌​/ADC7B1EA-93A0-4A25-‌​B7CA-342BE3EF58BE.jp‌​g", …}</p>
  
  <p>I am using RNFetchBlob for uploading image to firebase. actually i want to upload image using either data or uri not using origURL because i need to reduce the image size before uploading.Currently uploading is not possible using uri </p>
  
  <pre><code> let rnfbURI = RNFetchBlob.wrap(image.uri)
  Blob
      .build(rnfbURI, { type : 'image/png;'})
      .then((blob) =&gt; {
        // upload image using Firebase SDK
        firebase.storage()
          .ref()
          .child('images/')
          .put(blob, { contentType : 'image/jpg' })
          .then((snapshot) =&gt; {
  
        }).catch((error) =&gt; {
            console.log(error);
                Alert.alert(error);
  
          })
      });
  </code></pre>