aspose 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
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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: 133

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: 2552
    
    2

We do have a NotACodeMill policy around.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: photo upload from jsp to servlet and then storing in oracle database
 
Similar Threads
how to upload a file usiing jsp/servlets
File upload from Jsp
Fileupload with JSP/Servlet
Uploading a Image
Dynamically populating drop down menu with database values