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 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 Soft Skills this week in the Jobs Discussion 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