Brad Milne wrote on 07.04.2009 23:34:
> For completeness, here is the setter again
> with a couple of fixes:
>
> stmt.setBinaryStream(2,in,in.available());
Do not use availabe()
This will *not* give you the number of bytes that are "available" in the stream.
Read the Javadocs carefully: it will give you the number of bytes that can be
/read without blocking/
Most of the time this will not be the length of the stream.
Thomas