This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
Displaying image blob in jsp using image tag
store an image to database and also retrieve
retrieving gif from database
Struts and Multimedia
how to store and retrieve files using blob