List:MaxDB« Previous MessageNext Message »
From:Raimund Jacob Date:August 19 2002 9:14am
Subject:Re: JDBC: LONG BYTE stream writing
View as plain text  
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


Thread
JDBC: LONG BYTE stream writingRaimund Jacob18 Aug
RE: JDBC: LONG BYTE stream writingMarco Paskamp19 Aug
  • Re: JDBC: LONG BYTE stream writingRaimund Jacob19 Aug