This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to store and retrieve an image to database using in struts
 
Similar Threads
store an image to database and also retrieve
Struts and Multimedia
Displaying image blob in jsp using image tag
retrieving gif from database
how to store and retrieve files using blob