----- Original Message -----
From: "Ovais Ahmad Khan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
> now in the servlet's doPost method, i'm using the ServletInputStream to
> get the data but it's giving me the data in raw format, with all the
> headers,...
That is why ServletInputStream is there. If you use this, you will have to
read the data from the inputstream and parse this InputStream to get the
file.
> now does there exists some trick to get the real data (file) out of
> this.
There is no trick in doing this. Just parsing the multi part request.
If you do not want to get into parsing the multi-part request, it is already
done for you by Jason Hunter.
His classes are available on the net at
http://www.servlets.com/cos/index.html
Jason has detailed these classes in his book Servlet Programming.
Regds,
Gokul
>
> thanks
> --
> Ovais
___________________________________________________________________________
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