title: Trouble saving FileStream to bucket using fireabse admin SDK and busboy
body: <p>Using the help of <code>busboy</code> I am attempting to save <code>FileStream</code> into a Firebase bucket. </p>
  
  <p>code:</p>
  
  <pre><code>const admin = require('firebase-admin');
  const userFilesBucket = admin.storage().bucket(USER_FILES_BUCKET_NAME);
  
  
  function handlePost(req, res){
    const busboy = new Busboy({ headers: req.headers })
  
    busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
      file.on('data', function(data) {
      });
      file.on('end', function() {
        uploadFile({filename: filename, file:file, mimetype:mimetype})
          .catch(err =&gt; {
            console.log("attemptFileUpload | err:", err)
            reject(err)
          });
      });
    });
  }
  
  function uploadFile(fileContainer){
  
    const filePath = fileContainer.filename
  
    const file = userFilesBucket.file(filePath);
  
    file.save(fileContainer.file, function(err) {
      if (!err) console.log('Sucess | uploaded a blob or file!');
    });
  }
  </code></pre>
  
  <p>This will succeed and the file is saved to bucket but at the same time the above Promise catches exception:</p>
  
  <p><code>The "chunk" argument must be one of type string or Buffer. Received type object</code> </p>
  
  <p>as well as the files are corrupt.
  This error tells me I should convert the FileStream to Buffer? </p>
  
  <p>I should also note, that the <code>fileContainer.file</code> is of type FileSream.</p>
  
  <p>Thanks.</p>