title: Using JavaScript to display a Blob
body: <p>I am retrieving a Blob image from a database, and I'd like to be able to view that image using JavaScript. The following code produces a broken image icon on the page:</p>
  
  <pre><code>var image = document.createElement('image');
      image.src = 'data:image/bmp;base64,'+Base64.encode(blob);
      document.body.appendChild(image);
  </code></pre>
  
  <p><a href="http://jsfiddle.net/PDhCy/1/" rel="noreferrer">Here is a jsFiddle</a> containing all the code required, including the blob. The completed code should properly display an image.</p>