truncate(long len)

Syntax:

void truncate(long len) throws SQLException

Description:

Truncates the BLOB value that this Blob object represents to be len bytes in length.

Parameters:

len

the length, in bytes, to which the BLOB value that this Blob object represents should be truncated

Throws:

SQLException - if a database access error occurs or len < 0

References:

For more information, reference JDBC documentation for: Blob.truncate(long)