title: How to convert a formData object to binary in javascript?
body: <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>let file = document.body.files[0],
  
  
  function convertToBinary(file){
    // code
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>There is an API that I will be using to upload a file, and it only takes the file as binary.</p>
  
  <p>I can get it as formData but i have no idea how to parse it into binary.</p>