title: How to use data URI to deliver MSWord document (.docx) to Chrome?
body: <p>I have a JavaScript app that does client-side encryption &amp; decryption of files, storing the encrypted data at Google Cloud Storage.  All the encryption &amp; data transfer stuff works correctly, but I'm having trouble getting all document types to open in Chrome.  PDF works fine because of Chrome's built-in PDF viewer, but I would like to have it auto-open other file types as well.  For example:</p>
  
  <p>JavaScript app retrieves encrypted data, then decrypts it to produce a String or ByteArray containing a Word document.</p>
  
  <p>I create a data URI and call window.open() on it.  In the PDF case, a new tab opens with the PDF document.  When the data URI is a Word document (MIME type application/vnd.openxmlformats-officedocument.wordprocessingml.document) I get a blank window with (apparently) no content.</p>
  
  <p>I have been able to create an &lt;A&gt; tag with the data URI, and it downloads the correct data if the user right-clicks the link, but although I've set that MIME type to auto-open upon download, Chrome doesn't open it.  (It does auto-open Word docs sent from a regular HTTP request with that MIME type.)</p>
  
  <p>I would like to do several things with my decrypted data, starting with it in a client-side JavaScript string:</p>
  
  <ul>
  <li>Open in a new tab/window (for things that the browser can do, or has a plugin for)</li>
  <li>Open in external application</li>
  <li>Save as file</li>
  </ul>
  
  <p>Any help on these?</p>
  
  <p>Thanks!</p>