title: How to view an image from blob column in Oracle with JasperReports?
body: <p>I tried defining an image element in the report layout and setting type to java.io.Inputstream but that doesn't work, also I tried setting to java.awt.Image and neither works, the exception that I'm getting is </p>
  
  <pre><code>java.lang.ClassCastException: oracle.sql.BLOB cannot be cast to java.awt.Image
  </code></pre>
  
  <p>or</p>
  
  <pre><code>java.lang.ClassCastException: oracle.sql.BLOB cannot be cast to java.io.InputStream
  </code></pre>
  
  <p>Also I tried to google but the results are that what I'm doing right now.</p>
  
  <p>Thanks for your help.</p>