----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
There is an example in: Java Servlet programming, by jason Hunter on uploading
files. It may help you on your problem. Good luck.
http://www.servlets.com/jsp/examples/ch04/index.html#ex04_17
Mei Lu
FannieMae
fumitada wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hi, This is Fumitada.
>
> I wanna upload my image file via HTML & Java Servlet, but I dont know
> how Java Servlet can get the file.
> I embbed following line into my html file.
>
> <input type="file" size="30" name="sample_image" enctype="multipart/form-data"
> value="">
>
> and In Servlet code.
>
> ...I really dont know... ;)
>
> what I know is not to use getParameter(), cuz the method can get only
> String object. I guess I should use ServletInputStream.getInputStream ()
> instead. but I dont know how to code with it.
>
> anybody knows how to make it ?
> It's kinda urgent...
>
> Please help me out.
>
> Thank you.
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]