A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
How to Upload JPEG file in a server using JSP and Servlet
Joined: Jul 27, 2006
Feb 11, 2008 00:56:00
I want to Upload a JPEG file from the client browser(using
) and store it into a ORACLE DB on the server.....
Can anyone help me.... How can this be done....
Joined: Mar 22, 2005
Feb 11, 2008 01:13:00
The Apache Commons FileUpload package can handle the server side of the upload. This is really a job for a
, not a JSP. The
page has more information.
As to storing the
in a database, a BLOB field can be used. See
for a discussion of whether it's a good idea to store images in a DB.
I agree. Here's the link:
subject: How to Upload JPEG file in a server using JSP and Servlet
struts 2 file upload problem
How to Upload the Client File To The Server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015