title: can javascript select a user's image to insert on a webpage without uploading to a server?
body: <p>I have an X3D page with some solid primitives. I want the user to be able to select her own image to be used as a texture, but I want the page to be all client side.</p>
  <p>Can JavaScript insert an image into the HTML without uploading the image to a server? I have a vague memory of seeing this option somewhere. The image was changed to a PNM and inserted as text and then reconverted to an image for display/processing. I cannot find a reference anywhere and I may be using the wrong search terms. There are webpages (i think) that ask for an image to be selected for display without ever uploading. What is this function/script called?
  Has some other js function been developed that does this more efficiently?
  Have I gone mad?</p>
  <p>JavaScript does this all the time with text. fill out a form and see the text right there.</p>
  <p>My example X3D is below.</p>
  <pre><code>enter code here
  </code></pre>
  <p><code>enter code here</code>    
  <code>enter code here</code>    </p>
  <pre><code>enter code here    &lt;shape&gt;
      &lt;appearance&gt;
        &lt;material diffuseColor='0.5 0.2 1.0'&gt; &lt;/material&gt;
        &lt;ImageTexture url=' &quot;THE_CLIENT_IMAGE.png&quot; '&gt;&lt;/ImageTexture&gt;
      &lt;/appearance&gt;
      &lt;sphere radius=&quot;3&quot; &gt; &lt;/sphere&gt;
      &lt;/shape&gt;
  &lt;/Transform&gt;
  </code></pre>