This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Displaying BLOB