Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
pavithra raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not understanding where to go in that website, help me out, i am doing that for my project
 
Sabarish Venkat
Ranch Hand
Posts: 136
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the below code and change the database values according to your values.

JSP code


Servlet Code


 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We do have a NotACodeMill policy around.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic