Subject Re: OT - Stream Question
Author Roman Rokytskyy
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> someObject.write( baos );
>
> statement.setBinaryStream( COLUMN_BLOB, new ByteArrayInputStream(
> baos.getBytes() ) );

What prevents from you from setting byte array instead of stream?

statement.setBytes(COLUMN_BLOB, baos.getBytes());

Roman