Refer to MultipartRequest servlet from JasonHunter. (oreilly.com)

Regards
Praveen Tapashetti
Mascot Systems Ltd
Chennai, India

Tel:   91-44-2301236 Extn: 3321


        -----Original Message-----
        From:   NSB)Hiroshi Kasamatsu [SMTP:[EMAIL PROTECTED]]
        Sent:   Thursday, March 08, 2001 4:06 PM
        To:     [EMAIL PROTECTED]
        Subject:        How to get image file in servlet side?

        Hi ,all

        I am trying to develop  ImageServlet,which enable clients to send
jpg
        file to server or display it from server.

        In client side,I am going to use the next html tag:coz easy to use:
        <form enctype="multipart/form-data" method=post method=post
           action="http://www.image.com/Image/servlet/ImageServlet>
           specifiy your image file:
           <input type=file name=filename><br>
           <input type=submit value=upload>
        </form>

        In servlet side.however,I don't know how to get image file.
        Once I have got it,I only have to write it to the directory.

        Here is the method often used:

          req.getParameter("");

        But I don't think this method works.

        Please tell me how to get image file in servlet.

        Thanks in advance.

        Hiroshi Kasamatsu


___________________________________________________________________________
        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

___________________________________________________________________________
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