// Oracle JDBC drivers version 9 and below use some sh*tty Oracle-specific BLOB type
// we have to cast to that, face west, pray whilst saying ommmmmmmmmmm
oracle.sql.BLOB blob = null;
if (jdbcMajorVersion <= 8)
{
OracleResultSet ors = (OracleResultSet)rs;
blob = ors.getBLOB(1);
}
else
{
blob = (oracle.sql.BLOB)rs.getBlob(1);
}