title: Why I cannot cast oracle BLOB from native java Blob
body: <p>I am reading file from ResultSet and it's required to save file into Oracle Database.</p>
  
  <pre><code>...
  ResultSet rs = ...
  java.sql.Blob myfile = rs.getBlob("field")
  java.io.OutputStream os = ((oracle.sql.BLOB) myfile).getBinaryOutputStream();
  </code></pre>
  
  <p>I get get this error message</p>
  
  <pre><code>java.lang.ClassCastException
  </code></pre>
  
  <p>Any one have solution to this? Thanks!</p>