This is not hard to do, but you need to implement the details. See,
http://www.ietf.org/rfc/rfc2388.txt for info on multipart/form-data
encoding. Then just sent the info to the servlet.
Serdar BOZDAĞ wrote:
> hi,
>
> I have a servlet whose doPost method is called when a form is
> submitted by a user. In this form user selects a file from its local
> disk and when s/he submits the file servlet gets the file and copy it
> to the server.
>
>
>
> What I want to accomplish is to do task automatically. I mean users
> will call my servlet in their applications when some event occurs and
> their application somehow will send the file to the servlet as a
> parameter. I know that browser formats this file and sends it to the
> servlet when a form is submitted, but what will be done to this
> automatically.
>
>
>
> Do you hava any idea.
>
> thanks a lot,
>
> serdar
>
___________________________________________________________________________
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