This link has an example on how to handle an uploaded file.
http://www.servlets.com/jservlet2/examples/ch04/index.html#ex04_21
It doest'n matter whether if it is a graphic file or a text file.
This example downloads the file to your hard disk.
If you want to directly use the uploaded file without saving it to your
drive
visit this link.
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/MultipartP
arser.html
All the documentation required is available on this link

Thanks and Regards
Yuvaraj Mani

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Ruben
Roman
Sent: Wednesday, June 13, 2001 5:25 AM
To: [EMAIL PROTECTED]
Subject: PROBLEMS WITH GRAPHICS


I�m a new user for servlets. I know not so many things about JAVA and
SERVLETS. My problem is next one:

I have a system that runs in a web-server. It�s mounted in windows using
Apache Web-server, database Mysql and servlets.

I need to store graphics in one table of database. I have one form (shows in
screen from a servlet) that have one line : <INPUT TYPE=file NAME= graphic>

In this moment I have the path for the graphic prepared for next servlet,
but I don�t know how can I store this graphic in my database. I think
there�s a
class called MultipartRequest that can help me, but I don�t know how can I
use it.

Thank You

--
Sent through GMX FreeMail - http://www.gmx.net

___________________________________________________________________________
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