title: GridFS Binary to URL
body: <p>Is there a way to convert GridFS binary to a URL that can be used on a src?</p>
  <p>Let me explain:</p>
  <p>When an image is stored on mongoDB by GridFS it creates to files(fs.files &amp; fs.chunks).
  In fs.chunks the data is stored like so:</p>
  <pre><code>_id:ObjectID('')
  files_id:ObjectID('')
  n:0
  data:Binary('/9j/4S...',0)
  </code></pre>
  <p>Exist any way to convert that binary which is an image(a jpg to be precise) into a URL valid for a HTML img tag?</p>
  <p>Some kind of URL.createObjectURL()</p>
  <p>By the way, I tried to pass the binary file into URL.createObjectURL() and the displayed error is the following:</p>
  <pre><code>TypeError: URL.createObjectURL: Argument 1 is not valid for any of the 1-argument overloads.
  </code></pre>
  <p>Thanks in advance.</p>