But you could use a very simple HTML form like this:
<FORM ACTION="..."  ENC_TYPE="multipart/form-data">
<INPUT TYPE="file" NAME="userfile">
</FORM>
If you want use an Applet:
- open a socket to the server (port 80)
- send an http request to get filename.cgi with post method and
enctype multipart/form-data
- open a stream to the local file and send it to the socket
-----Messaggio originale-----
Da: elci ap3 <[EMAIL PROTECTED]>
A: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Data: gioved� 11 marzo 1999 10.13
Oggetto: HTTP-Upload


>Hi out there!
>
>Can anyone help me: I want to upload a file from an applet via HTTP to a
WebSite 3.1.1-Server. How can I do this? Some piece of code??? (Accessing
the client's file is no problem!)
>
>Best regards,
>Dietmar Scharf
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to