title: Convert base64 audio to file
body: <p>I have an audio blob, I then run </p>
  
  <pre><code>var reader = new FileReader();
  reader.readAsDataURL(blob);
  reader.onloadend = () =&gt; {
    var base64data = reader.result;
    //log of base64data is "data:audio/ogg; codecs=opus;base64,GkX..."
  }
  </code></pre>
  
  <p>Now I send this data to my server and all I'm trying to do is convert to an '.ogg' file (wav or mp3 preferred). The base64 works fine when passed to an HTML audio player.
  On the server I tried </p>
  
  <pre><code>fs.writeFileSync('file.ogg', base64data);
  </code></pre>
  
  <p>I always get the file created however it never plays, what I'm I doing wrong please?</p>