title: Extract binary data (file) that was sebt from postman in nodejs/expressjs
body: <p>I am trying to test file uploading in my back-end.
  Currently using postman to send a binary data in the body, which is a file,
  and I'm trying to extract the data from the post request.</p>
  
  <pre><code>req.body 
  </code></pre>
  
  <p>returns:</p>
  
  <pre><code>&lt;Buffer 50 4b 03 04 14 00 06 00 08 00 00 00 21 00 7c 6c 98 16 69 01 00 00 a0 05 00 00 13 00 08 02 5b 43 6f 6e 74 65 6e 74 5f 54 79 70 65 73 5d 2e 78 6d 6c 20 ... &gt;
  </code></pre>
  
  <p>How can I treat the buffer as file content?
  It should replace this function:</p>
  
  <pre><code>   fs.readFile('./text.txt',  function (err, contents) {
                  if (err) {
                       console.log('Error: ', err);
                  }
                      uploadFile(contents,cb);
              });
            } ;
  </code></pre>
  
  <p>can I get the same info (same as contents) from the buffer abd pass it on to</p>
  
  <pre><code>uploadFile(contents,cb);
  </code></pre>
  
  <p>(When the front-end wil be created it will be a form data but for now I am only want to build it for testing.)</p>