title: How can I set Image source with base64
body: <p>I want to set the Image source to a base64 source but it does not work:</p>
  
  <p><a href="http://jsfiddle.net/NT9KB/" rel="noreferrer">JSfiddle.net/NT9KB</a></p>
  
  <pre><code>&lt;img id="img" src="" /&gt;
  </code></pre>
  
  <p>the JavaScript</p>
  
  <pre><code>document.getElementById("img").src = "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
  AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
  9TXL0Y4OHwAAAABJRU5ErkJggg=="
  </code></pre>