You can get a java.sql.Blob object from a ResultSet; i.e. I retrieve my byte[] from a blob with
Blob b = r.getBlob(resultSetIndex); byte[] ba = (byte[]) b.getBytes(1L, (int) b.length())
Blob b = r.getBlob(resultSetIndex); byte[] ba = (byte[]) b.getBytes(1L, (int) b.length())