Re: How to save something in a Java Applet as an IMAGE file?
| From: | Phil Driscoll | Date: | Mon, 05 Feb 2001 14:50:01 +0000 |
| Subject: | Re: How to save something in a Java Applet as an IMAGE file? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-38241@lists.php.net to get a copy of this message | ||
>how can i do this? i have a java applet on my site which allows users to
>create their own drawings. i want to provide a "Email this to me" option,
>which will save the applet drawing and email it to the user. is there any
>way i can achieve this?
We have a parametric CAD system which runs as a Java applet. To save
drawings, it can try to do a local save, so we have the option to 'Save via
server' in which case the applet POSTs the data to a cgi program on the web
server and opens up a new window to handle the response. The file can then
be saved from the web browser.
Check out
http://www.dtonline.org/apps/object/app.exe?1&2&1&1&10&2&0
The cgi program is written in C, but an equivalent could be knocked up in
PHP in a few minutes. If you really need to email the drawing, then you
could get the PHP program to email the drawing as an attachment instead.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org