position(byte[] pattern, long start)

Syntax:

long position(byte[] pattern, long start) throws SQLException

Description:

Retrieves the byte position at which the specified byte array pattern begins within the BLOB value that this Blob object represents. The search for pattern begins at position start.

Parameters:

pattern

the byte array for which to search

start

the position at which to begin searching; the first position is 1

Returns:

the position at which the pattern appears, else -1

Throws:

SQLException - if a database access error occurs, start < 1, or pattern is null

Reference:

For more information, reference JDBC documentation for: Blob.position(byte[], long)