On Friday 09 January 2004 17:18, Kris Jurka wrote: > I was referring to the documentation for setBinaryStream. You > mentioned that it should throw an Exception if it couldn't read > "length" bytes from the stream. I was commenting that our > implementation might be wrong by checking the length at all.
Sorry for not being precise. There are two different issues. 1) The way the InputStream is read is clearly wrong. This should be fixed. 2) What to do, when the size of the input stream does not match the lenght argument of Statement.setBinaryStream() There are two options a) Throw a exception b) Silently send all bytes, that are available. I don't really understand what the length argument is good for and think, that this is a design flaw made by Sun. I would prefer a), but I am not sure here. Martin -- Martin Holz <[EMAIL PROTECTED]> Softwareentwicklung / Vernetztes Studium - Chemie FIZ CHEMIE Berlin Franklin Str. 11 D-10587 Berlin ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings