In my application, I have two images displayed via the img tags in html. I would like to get these images into the applet, where the applet can manipulate the images, and then set the new image back into the DOM.

I am reading about jsobject which seems like a way to do it. However, I can't figure out exactly how.

Does anyone have any example code on how to get an image into an applet when the image is already in the dom, and the converse, of getting the image from the applet and setting the dom.

Once this cycle is completed, I want to send the updated image back to the server. I am hoping a post will work with a file attachment...but the attachment wouldn't come from the file system, it would come from the applet or from the DOM.