preStatement.setLong(SIZE_IN_BYTES, sizeInBytes);
ByteArrayInputStream blob_stream = new ByteArrayInputStream(blob);
preStatement.setBinaryStream(BLOB, blob_stream, blob.length); //(int)sizeInBytes);
//preStatement.setBytes(7, blob);
if (log.isLoggable(Level.FINE)) log.fine(preStatement.toString());
preStatement.addBatch();
}
int[] ret = preStatement.executeBatch();
if (!conn.getAutoCommit()) conn.commit();
return ret;
}