Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

uploading images using jsp in strut

 
kalpana srinuvasan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pl help me to upload the images from the client machine and have to save in the oracle database using struts in jsp page .
i am using DAO' s to insert the data into the table .
i need the code which get the image from the client , and save it as blob in the database(in my table )..
please help me
thanks in advance ..
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To upload a file see:
http://cwiki.apache.org/WW/file-upload-interceptor.html
http://www.roseindia.net/struts/struts2/struts-2-file-upload.shtml
Don't forget to include commons-fileupload and commons-io in your lib-folder.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't specify whether you were using Struts 1 or Struts 2, and this makes a difference in how you approach this problem. The links Joachim gave you are for Struts 2. If you're using Struts 1, see this link.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic