File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes uploading images using jsp in strut Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "uploading images using jsp in strut" Watch "uploading images using jsp in strut" New topic
Author

uploading images using jsp in strut

kalpana srinuvasan
Greenhorn

Joined: Jul 08, 2008
Posts: 9
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

Joined: Nov 27, 2006
Posts: 423

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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: uploading images using jsp in strut