This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread 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 Introducing JavaFX 8 Programming this week in the JavaFX 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
 
It's not a secret anymore!