This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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
 
 
subject: how to store and retrieve an image to database using in struts
 
It's not a secret anymore!