title: Convert stream into buffer?
body: <p>How to convert stream into buffer in nodejs? Here is my code to parse a file in post request  in express.</p>
  
  <pre><code>app.post('/upload', express.multipart({
  defer: true
  }), function(req, res) {
  req.form.on('part', function(part) {
  
  //Here I want to convert the streaming part into a buffer.
  //do something buffer-specific task
  
    var out = fs.createWriteStream('image/' + part.filename);
    part.pipe(out);
  });
  
  req.form.on('close', function() {
      res.send('uploaded!');
    });
  });
  </code></pre>