File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2709
    
    5

We do have a NotACodeMill policy around.


SCJP, SCWCD.
|Asking Good Questions|
 
 
subject: photo upload from jsp to servlet and then storing in oracle database
 
Similar Threads
Fileupload with JSP/Servlet
how to upload a file usiing jsp/servlets
Uploading a Image
Dynamically populating drop down menu with database values
File upload from Jsp