title: Providing the Object tag with data directly
body: <p>I wanted to embed a PDF file in my website, it looked like this:</p>
  <pre><code>&lt;object data=&quot;data/PDFTest1.pdf&quot; type=&quot;application/pdf&quot; id=&quot;data&quot;&gt;&lt;/object&gt;
  </code></pre>
  <p>But then I wanted to first Get the file with ajax (in a javascript file), edit it's source code in JavaScript, and then create an <code>&lt;object&gt;</code> and give it the resulting data. The problem is that the Object needs a url in its <code>data</code> attribute, and does not accept the actual data directly. How can I handle this?</p>
  <p>Is there a way to create a &quot;fake url&quot; in javascript for example?</p>
  <p>Or can I somehow pass the data in another way to the object?</p>
  <p>Or should I maybe use some other tag ?</p>
  <p>Thanks in advance and sorry for my English.</p>