This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes How to Upload JPEG file in a server using JSP and Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to Upload JPEG file in a server using JSP and Servlet" Watch "How to Upload JPEG file in a server using JSP and Servlet" New topic
Author

How to Upload JPEG file in a server using JSP and Servlet

Vikram Shirur
Ranch Hand

Joined: Jul 27, 2006
Posts: 33
Hi....

I want to Upload a JPEG file from the client browser(using JSP) and store it into a ORACLE DB on the server.....

Can anyone help me.... How can this be done....

Thanks,
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35237
    
    7
The Apache Commons FileUpload package can handle the server side of the upload. This is really a job for a servlet, not a JSP. The http://faq.javaranch.com/java/FileUpload page has more information.

As to storing the image in a database, a BLOB field can be used. See this thread for a discussion of whether it's a good idea to store images in a DB.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to Upload JPEG file in a server using JSP and Servlet
 
Similar Threads
doPut()????
How to Upload the Client File To The Server
struts 2 file upload problem
File upload
fiel upload