title: Node.js - How to Convert Buffer to file or blob
body: <p>The problem is. I want to upload a file or image from my Node.js express project to Firebase Storage. I'm using multer to parse the image files. But then i face a problem</p>
  
  <p>I tried to print the object file and then this is the output :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{ fieldname: 'field_name',
    originalname: '1.jpeg',
    encoding: '7bit',
    mimetype: 'image/jpeg',
    buffer: &lt;Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 01 00 01 00 00 ff db 00 43 00 08 06 06 07 06 05 08 07 07 07 09 09 08 0a 0c 15 0e 0c 0b 0b 0c 19 12 13 0f ... &gt;,
    size: 75469 }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Okay, that's the file object. the only thing that i think i can process is the buffer. But, the firebase storage said that it only accepts a 'file' or 'blob'. Then i tried to find out how to convert that Buffer to a file or blob. Until now, i cant find the way to do it. Please help me.</p>