@Override public long position(Blob blobPattern,long start) throws SQLException {
  if (isDebugEnabled()) {
    debugCode("position(blobPattern, " + start + ");");
  }
  if (Constants.BLOB_SEARCH) {
    try {
      checkClosed();
      if (blobPattern == null) {
        return -1;
      }
      ByteArrayOutputStream out=new ByteArrayOutputStream();
      InputStream in=blobPattern.getBinaryStream();
      while (true) {
        int x=in.read();
        if (x < 0) {
          break;
        }
        out.write(x);
      }
      return position(out.toByteArray(),start);
    }
 catch (    Exception e) {
      throw logAndConvert(e);
    }
  }
  throw unsupported("LOB subset");
}

@ Override public long position ( Blob blobPattern , long start ) throws SQLException { if ( isDebugEnabled ( ) ) { debugCode ( "position(blobPattern, " + start + ");" ) ; } if ( Constants . BLOB_SEARCH ) { try { checkClosed ( ) ; if ( blobPattern == null ) { return - 1 ; } ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; InputStream in = blobPattern . getBinaryStream ( ) ; while ( true ) { int x = in . read ( ) ; if ( x < 0 ) { break ; } out . write ( x ) ; } return position ( out . toByteArray ( ) , start ) ; } catch ( Exception e ) { throw logAndConvert ( e ) ; } } throw unsupported ( "LOB subset" ) ; }
[ not supported ] searches a pattern and return the position .
