I answered this in the blog where the question was asked
[EMAIL PROTECTED] wrote:
Suavi Ali Demir <[EMAIL PROTECTED]> writes:
Hello,
Does anybody know why the JDBC method:
PreparedStatement.setBinaryStream(s,size)
requires the caller to pass in the length of the stream?
Simple (and stupid) answer: Beacuse the spec says so :)
I don't KNOW this, but I assume that it is to give the implementation
a chance to optimize.
You could check out Lance Anderson's blog:
http://weblogs.java.net/blog/lancea/archive/2006/02/jdbc_40_keeps_m.html
He's the jdbc spec lead, and if you comment on his blog, maybe he'll give you
a better answer :)
|