• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying BLOB in JSF  RSS feed

Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


[ August 28, 2007: Message edited by: Sushma Sharma ]
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!