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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: uploading images using jsp in strut
 
Similar Threads
image store and retrieve
image upload
Add row dynamically in html table based on the number of records in the database using jsp
How to store the multiple check box values in the form bean
Displaying images on JSP page