List:MaxDB« Previous MessageNext Message »
From:Raimund Jacob Date:August 18 2002 6:47pm
Subject:JDBC: LONG BYTE stream writing
View as plain text  
hello again!

i just (scaredly) realized that all JDBC stream writing methods (in 
PreparedStatement) require a "length" parameter indicating the length of 
the stream to be written.

i was hoping that SAP DB would not require that parameter and had a look 
at the JDBC driver sources. In StreamTranslator.java i found out that 
only setBlob() works; setXXXStream throws an exception. questions: did i 
read the sources correctly ? do i always have to supply the length 
parameter ?

(insert stupid-question-appology here)
	Raimund

-- 
Raimund Jacob
                                                  \|/ ____ \|/
Pinuts Media+Science GmbH                        "@'/ ,. \`@"
Potsdamer Str. 96                                /_| \__/ |_\
D-10785 Berlin                                      \__U_/
http://www.pinuts.de/ voice: +49 30 590090322 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