Subject | Re: OT - Stream Question |
---|---|
Author | Roman Rokytskyy |
Post date | 2003-06-11T19:50:11Z |
> ByteArrayOutputStream baos = new ByteArrayOutputStream();What prevents from you from setting byte array instead of stream?
> someObject.write( baos );
>
> statement.setBinaryStream( COLUMN_BLOB, new ByteArrayInputStream(
> baos.getBytes() ) );
statement.setBytes(COLUMN_BLOB, baos.getBytes());
Roman