Just a thought but have you tried using a Stream instead of a byte[] array? I know in
JDBC clob/blobs can be tricky in that sometimes you have to perform select/insert in two statements instead of one. For example, sometimes you have to read the entire record except the binary data then read each blob/clob separately.