This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes how to store and retrieve an image to database using in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to store and retrieve an image to database using in struts" Watch "how to store and retrieve an image to database using in struts" New topic
Author

how to store and retrieve an image to database using in struts

Julie Jacob
Greenhorn

Joined: Aug 17, 2005
Posts: 20
Hi all,

How to store and retrieve an image in MySql using with struts. Anyone to know this please give me the solutions

thanks
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
First, the column type should be BLOB.
Second, your form property should be of type org.apache.struts.upload.FormFile
Third, in your action (assuming upload is name of property)


http://www.goodercode.com
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to store and retrieve an image to database using in struts