title: Display BLOB type in JSF view
body: <p>I'm creating a Java EE application for my company with JBoss AS7, JSF2, MySQL, EJB and JPA.</p>
  
  <p>I have a dataTable in my JSF view with several row which contains the data retrieved from my database. In this data, I have a BLOB column which can contain any file type like image, PDF, text.</p>
  
  <p>I want to put a link in each row which open the file in a new window.</p>
  
  <ol>
  <li>How can I convert BLOB type to byte?</li>
  <li>How can I do this kind of work?</li>
  </ol>