---------------------------------------------------------------- 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!!! ---------------------------------------------------------------- if you have the oreilly servlet book, there's a class that the author wrote that handles multipart request, which'd work for you. http://www.servlets.com -----Original Message----- From: fumitada [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 18, 2000 1:58 PM To: Java Apache Users Subject: How can I get a file through HTML + Java Servlet ? ---------------------------------------------------------------- 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]