title: Blob saved as [object Object] Nodejs
body: <p>I want to record audio from the microphone with HTML5, then send it to the server to be saved. Currently however, the saved file just contains <code>[object Object]</code></p>
  
  <p>Here are some snippets of my code.</p>
  
  <h3>Frontend:</h3>
  
  <pre><code>console.log(blob);
  $http.post('/api/save_recording', blob)
    .success(function(new_recording) {
      console.log("success");
    })
  </code></pre>
  
  <p>The log prints:</p>
  
  <pre><code>Blob {type: "audio/wav", size: 237612, slice: function}
  success
  </code></pre>
  
  <h3>Backend:</h3>
  
  <pre><code>exports.saveRecording = function(req, res) {
    console.log(req.body);
  
    fs.writeFile("temp/test.wav", req.body, function(err) {
      if(err) {
        console.log("err", err);
      } else {
        return res.json({'status': 'success'});
      }
    }) 
  }
  </code></pre>
  
  <p>The log prints: <code>{ type: 'audio/wav', size: 786476 }</code></p>
  
  <p>Can you tell me why this isn't working, and how to fix it?</p>