This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes photo upload from jsp to servlet and then storing in oracle database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "photo upload from jsp to servlet and then storing in oracle database" Watch "photo upload from jsp to servlet and then storing in oracle database" New topic
Author

photo upload from jsp to servlet and then storing in oracle database

pavithra raghu
Greenhorn

Joined: Dec 22, 2011
Posts: 7
How to upload image, which should be taken from the jsp and send it to servlet which stores them in database.
I have idea that we have to use a library, the library which i am trying is commons-fileupload-1.2.2.jar. but i dont know the methods or the logic behind it
please help me out
pavithra raghu
Greenhorn

Joined: Dec 22, 2011
Posts: 7
i am not understanding where to go in that website, help me out, i am doing that for my project
Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

Use the below code and change the database values according to your values.

JSP code


Servlet Code


Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

We do have a NotACodeMill policy around.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: photo upload from jsp to servlet and then storing in oracle database
 
Similar Threads
Dynamically populating drop down menu with database values
how to upload a file usiing jsp/servlets
Uploading a Image
File upload from Jsp
Fileupload with JSP/Servlet