Hi,
I am reading the BLOB from database and storring as the byte array in the managed bean. I need to display this byte array as image in richfaces.
I tried using
<a4j:mediaOutput element="img" cacheable="false" session="true"
createContent="#{productSrchMBean.paint}" style="width:60px; height:60px;"
value="#{searchResult.image}"
But the image is not shown in UI.
I even tried the solution given in
http://community.jboss.org/wiki/A4jmediaOutputAndLargeObjectsAsValue
<a4j:mediaOutput element="img" cacheable="false" session="true"
createContent="#{productSrchMBean.paint}" style="width:60px; height:60px;"
value="#{sdh:storeDataAndGetKey(searchResult.image)}"
But it gives the as "Function sdh:storeDataAndGetKey not found".
Could someone please help me to solve the problem.