Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: Java-Applet post to CGI


Message #1 by "Mark Sievers" <mjs@b...> on Wed, 15 Aug 2001 10:52:52
quite aside from that, you can post an image as part of multi mime
submission to a CGI. Do a little reading on multi mime parts. The HTML for
it is quite simple and there are plenty of tutorials about it so its not
really a java issue but a CGI issue. The specific HTML will look something
liek this:

<INPUT TYPE="File" NAME="myimage" SIZE="20" MAXLENGTH="255"
ACCEPT="image/jpeg,image/gif,image/tiff">

Depending on the language you choose there will be different ways of
capturing the parameters sent.

If you have ever sent values to cgi, you have probably sent text vaules, if
you know how to capture text values, capturing sent images is the same
except that you are accepting binary values instead of text. That is a
matter of learning C, or Perl or whatever which I know little about

I hope that helps

chanoch

-----Original Message-----
From: Jeff Rancier [mailto:jeff.rancier@s...]
Sent: 15 August 2001 14:53
To: Professional Java
Subject: [pro_java] RE: Java-Applet post to CGI


What's the issue with installing Tomcat?  What's the server?

-----Original Message-----
From: Mark Sievers [mailto:mjs@b...]
Sent: Wednesday, August 15, 2001 10:53 AM
To: Professional Java
Subject: [pro_java] Java-Applet post to CGI


Problem:
My Applet gets an Image from the server, then you can manipulate it. What 
I want to do is upload the changed image back to the server. I thought it 
might be easy to simple post it to the CGI-Script (PHP), where it comes 
from. But I found no method to post a BufferedImage. I don't want to use 
servlets, cause I don't want to install tomcat onto the server...
Help would be appreciated...
---

  Return to Index