Great that did the trick, thanks a lot.
To sum up for anyone else with the same problem.
The EntityBean has
@Lob
public Blob getContent()
{
return content;
}
In the Stateful session bean
@DataModel
private List documentList;
@DataModelSelection
@In(required=false)
@Out(required=false)
private Document document;
@PersistenceContext
private EntityManager em;
//You do need to do the merge before accessing the BLOB
em.merge(document);
Blob blob=document.getContent();
is = blob.getBinaryStream();
....
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973330#3973330
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973330
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user