title: HTML5 FileApi + FileReader - Feed <object> with SWF
body: <p>I want to use the HTML5 FileApi to read a SWF to an <code>OBJECT</code> (or <code>EMBED</code>, if it's better to do?).</p>
  
  <p>My current code crashes on Chrome/Iron (the only <em>stable</em> browser which also supports the xmlhttprequest v2 FormData). I got it to read image data into a on-the-fly created IMG. But the object one crashes the current tab in the browser.</p>
  
  <pre><code>else if (file.type == "application/x-shockwave-flash") {
      var show = document.createElement("object");
      show.type = "application/x-shockwave-flash"
      show.style.width = "100%";
      show.style.height = "100%";
      show.id = "thumb";
      document.getElementById("thumbnails").appendChild(show);
  
      var reader = new FileReader();
      reader.onload = (function (aImg) { 
          return function (e) { aImg.data = e.target.result; }; 
      })(show);
      reader.readAsDataURL(file);
  </code></pre>
  
  <p>Do I really read to the <code>object.data</code> part? How is it done right? Anybody know? Or is this incomplete and I have to wait for better implementation?</p>