title: Trouble adding images to when converting word document from HTML using javascript
body: <p>I'm trying to dynamically generate a word document on the client for a report.</p>
  
  <p>I create a HTML string in the format:</p>
  
  <pre><code>&lt;html xmlns:office="urn:schemas-microsoft-com:office:office" xmlns:word="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"&gt;
  &lt;head&gt;
      &lt;xml&gt;
          &lt;word:WordDocument&gt;
          &lt;word:View&gt;Print&lt;/word:View&gt;
          &lt;word:Zoom&gt;90&lt;/word:Zoom&gt;
          &lt;word:DoNotOptimizeForBrowser/&gt;
          &lt;/word:WordDocument&gt;
      &lt;/xml&gt;
      &lt;style&gt;Some CSS&lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      Some HTML
  &lt;/body&gt;
  </code></pre>
  
  <p>And then base64 convert the HTML string and set the download attribute on an a to be "data:text/html,base64EncodedText"</p>
  
  <p>This all works fine except that the images do not work.</p>
  
  <p>I've tried:
      img src="https://hostname/imagepath",
      img src="data:image/png;base64encodeduri"
   and started trying to use a VML but have had no luck (the encoded srcs open fine when using them as a URL in the browser).</p>
  
  <p>Can anyone help? What is the best way to get images into a word document?</p>
  
  <p>If possible I'd like to avoid using a library, I've looked at docx.js but can't use it because of the licensing (and that there are no examples for it...).</p>
  
  <p>Thanks</p>