title: stream req.body.image into a location on the server
body: <p>I wanted to do something like this:</p>
  
  <pre><code>app.post("/", function(req, res){
      var readStream = fs.createReadStream(req.body.image);
      var writeStream = fs.createWriteStream(__dirname + "canvas.png");
      readStream.pipe(writeStream)
      console.log(req.body)
      res.redirect("/")
  })
  </code></pre>
  
  <p>I believe I have to create a file when using <code>fs.createReadStream</code> so I'm assuming that is why it is not working. I just want to stream the image that was created from canvas into someplace on the server. I really want to stream the image into GridFs <strong>I'm not sure why I have to make the files on the server for the read stream</strong>. I just did this for practice since I have no experience with streaming or GridFs . I'm taking baby steps.</p>
  
  <p>I successfully send the image to the post handler it begins with <code>data:image/png;base64</code></p>