On Mon, Oct 20, 2008 at 6:19 AM, whitewaterbug <[EMAIL PROTECTED]>wrote:
> > I believe this would require a 2nd download of the image so that it is > within the applet. I am trying to get the actual image data into the > applet through javascript to applet communication or having the applet > access the DOM directly. I see, you might want to look into image "data: URL". Basically you could use a backend script, such as PHP, to convert your image into base64 data and insert that directly into HTML. Another method would be to use <canvas> - insert the image into a canvas element, convert to base64 and extract as a string. > > Since the image data is downloaded as the HTML is being parsed by the > browser...I am not sure if I can get at the image data. You will not have this problem if you use a data url because the image data is injected directly into HTML. A downer is I don't think IE6 and 7 support data URLs. -- Ca-Phun Ung + http://yelotofu.com + css, django, hongkong, html, javascript, php