java.lang.ClassCastException
I get the exception: java.lang.ClassCastException
while reading a blob (Oracle + tomcat using connection pooling)
Statement stmt = connection.createStatement();
ResultSet lobDetails = stmt.executeQuery("SELECT MY_BLOB FROM BLOB_TAB WHERE BLOB_ID = 1 FOR UPDATE");
if( lobDetails.next() ) {
Blob mapBlob = lobDetails.getBlob(1);
OutputStream blobOutputStream = ((oracle.sql.BLOB)mapBlob).getBinaryOutputStream(); // exception is thrown
<p>Please help!!

