title: How convert a audio file into byte array with javascript
body: <p>I'm trying to convert a .wav file to a byte array string. I need to do this on the back-end targeting the file is becoming an issue.</p>
  
  <pre><code>        files.forEach(file =&gt; {
              let index = files.indexOf(file)
              let reader = new FileReader();
              reader.readAsArrayBuffer(file);
              console.log(reader.result);
  
              reader.onload = function (event) {
                  let byteArray = new Uint8Array(reader.result);
                  let FileName = file.name;
                  let dataAsByteArrayString = byteArray.toString();
                  var listHtml = $list.html();
  </code></pre>
  
  <p>The above code uses npm's filereader which says to target a file. I'm having difficulty doing this since this is not a front end drag and drop of the file.</p>
  
  <p>my file that is generated is called "response.wav" how would I convert this file using JavaScript and node extensions? Thanks!</p>