title: How to convert file to buffer in node.js?
body: <p>I am writing a sails.js app. I am writing an API to accept a file and encrypt it.</p>
  
  <pre><code>var file = req.body('myFile');
  var fileBuffer = convertToBuffer(file);
  </code></pre>
  
  <p>How do I convert a file to buffer?</p>