This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Displaying BLOB in JSF" Watch "Displaying BLOB in JSF" New topic

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 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.


[ August 28, 2007: Message edited by: Sushma Sharma ]
jQuery in Action, 2nd edition
subject: Displaying BLOB in JSF
Similar Threads
Problem with displaying remote protlets in consumer side.
Help on stuck thread
IndexOutOfBoundsException at javax.faces.component.UICompo
Software caused connection abort: socket write error