Paskamp, Marco wrote:
hello!
> yes you must always set the length parameter for the stream
> writing methods. The driver stops reading the stream if the
> number of bytes is reached, which was specified by the
> length parameter. This behavior was implemented in newer
> jdbc drivers because of standard conformance. But there is a
> backdoor, if you set the length parameter to -1 the driver
> reads from the stream until "end of stream" was found.
great. this backdoor is really great. thanks a lot for that.
> But be aware some streams never send an "end of stream"
> which leads to an infinite loop.
i would conside such a stream as a bug. but thanks for the
hint, i will have an eye on it...
thanks again,
Raimund
--
Raimund Jacob
\|/ ____ \|/
Pinuts Media+Science GmbH "@'/ ,. \`@"
Potsdamer Str. 96 /_| \__/ |_\
D-10785 Berlin \__U_/
http://www.pinuts.de/ voice: +49 30 590090313 fax: +49 30 590090390