title: How do i convert a React-Native-Fetch-Blob Blob into a base64/Image
body: <p>I am trying to store images in Firebase.Storage using React-Native-Fetch-Blob and i have finally gotten something into storage but the file in storage is now full nonsense/compressed data which i can't really use for anything.</p>
  
  <p>how do I turn the blob back into BASE64 or image so that I can use the image in my application</p>
  
  <p>`</p>
  
  <pre><code>upLoadImage(image, mime = 'application/octet-stream') {
      const imageRef = firebase.storage().ref('images').child('image_001')
      let uploadBlob = null
      console.log('phase 2');
      Blob.build(image, {
          type: `${mime};BASE64`
      }).then((blob) =&gt; {
          console.log(imageRef.toString());
          uploadBlob = blob
          imageRef.put(blob, {
              contentType: mime
          })
          console.log('phase 2');
          console.log(imageRef.toString());
          console.log(imageRef.getDownloadURL());
          imageRef.getDownloadURL()
      }).catch((error) =&gt; {
          console.log(error.toString());
      })
  }
  </code></pre>
  
  <p>`</p>
  
  <p>The code is based upon this project <a href="https://github.com/dailydrip/react-native-firebase-storage/blob/master/src/App.js#L43-L69" rel="nofollow noreferrer">https://github.com/dailydrip/react-native-firebase-storage/blob/master/src/App.js#L43-L69</a> </p>