my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
clob and blob
how to convert byte[] to blob
how to store an image into the DataBase using oracle database
ORA-01460: unimplemented or unreasonable conversion requested
How to convert FormFile into BLOB object?