wood burning stoves 2.0*
The moose likes JSF and the fly likes Displaying BLOB in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Displaying BLOB in JSF" Watch "Displaying BLOB in JSF" New topic
Author

Displaying BLOB in JSF

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Hi Experts,
I am having trouble displaying BLOB data in my page. My requirement is that I must be able to show some predefined types(PDF, HTML, GIF, JPEG, DOC, XLS) of BLOB data in my page. This page must have the header of my application. I tried to use the example given at http://www.irian.at/myfaces/fileupload.jsf. I tried that example and it seemed to work for Images. But after I incorporated it in my app, I am getting the following exception. Upload works, but problem is with displaying the content of the BLOB data. We have a field in the table where we set what type of data is in the BLOB, so I set the contentType from that. I am using Myfaces 1.1.5, Tomahawk 1.1.3, Ajax4Jsf 1.1.1server is WLS8.1 sp6.
I understand that it is a problem with the page encoding/ content type set for the page.I tried it with UTF-8 and ISO-8859-1, but neither of them worked. Any help is appreciated.

Sushma

[ August 28, 2007: Message edited by: Sushma Sharma ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying BLOB in JSF