title: How to convert FetchAPI parsed Blob Results to Base64
body: <p>Have this <code>module.exports</code> file which fetches an image from an API endpoint. The API result is then parsed into a blob. After parsing the Blob object looks like this: </p>
  
  <pre><code>Blob {
    [Symbol(type)]: 'image/jpeg',
    [Symbol(buffer)]:
     &lt;Buffer ff d8 ff db 00 43 00 08 06 06 07 06 05 08 07 07 07 09 09 08 0a 0c 14
  0d 0c 0b 0b 0c 19 12 13 0f 14 1d 1a 1f 1e 1d 1a 1c 1c 20 24 2e 27 20 22 2c 23 1c
   ... &gt; }
  </code></pre>
  
  <p>And here's the code: </p>
  
  <pre><code>// Pre Configuration
  const fetch = require('node-fetch')
  
  module.exports = async (req, res, photoKey) =&gt; {
      let photoUrl = null
      const apiURL = "https://media.heartenly.com/stg/CACHE/sc_thumb"
      const requestURL = `${apiURL}/${photoKey}`
      const response = await fetch(requestURL)
      const data = await response.blob()
      console.log(data)
  }      
  </code></pre>
  
  <p>Now what I want to do is to return base64 URL format of the returned blob, any ideas?</p>