• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

uploading images using jsp in strut

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ..
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic