This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Displaying BLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying BLOB" Watch "Displaying BLOB" New topic
Author

Displaying BLOB

Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi,
I have a BLOB field in my database which contains documents (word, PDF, etc.)
How can I retrieve and display them through an struts action?
Shane Bailey
Greenhorn

Joined: Apr 23, 2003
Posts: 2
Originally posted by Mary White:
Hi,
I have a BLOB field in my database which contains documents (word, PDF, etc.)
How can I retrieve and display them through an struts action?

Use the org.apache.struts.upload.FormFile object.
Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi Shane,
I 'm able to save it in the database by using the object you mentioned, but how can I retrive it and present it back?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying BLOB