Access Applet Images
1 posts in topic
Flat View  Flat View

Posted By:   Vasu_Akkineni
Posted On:   Tuesday, November 1, 2005 11:30 AM

Hello all,

I am trying to save the images which are being displayed in an applet onto the local drive. In the html page where the applet is being displayed, i've included a download button, on clicking which the "jpg" image being displayed in the applet should be saved to the local hard drive. I've tried to save the image in a hidden field using the document.form.applets["appletname"].GetImage("jpg") and then try to acess the hidden field data. Is this the correct way to do it? It doesn't work.Please suggest an alternative.



Re: Access Applet Images

Posted By:   Chris_Nguyen  
Posted On:   Wednesday, November 16, 2005 07:57 PM

Assuming that the displayed image is stored on the server, try this code in your applet class.

this.getAppletContext().showDocument( URL_to_displayed_image );
About | Sitemap | Contact