BLOB Question in Oracle 9i [message #91647] |
Fri, 27 December 2002 03:25 |
Ehsan Khosrowshahi
Messages: 1 Registered: December 2002
|
Junior Member |
|
|
Ive got a problem inserting files larger than 2k (2048 bytes) into
BLOB objects via JDBC, i use something like this:
if (news.getPicture() != null)
ps.setBinaryStream(9,news.getPicture(),news.getPicture().available
());
else
ps.setBinaryStream(9,null,0);
suppose tht new.getPicture() returns a InputStream, it works fine
when the file size (InputStream) is less than 2k but it doesnt works
when it gets larger than 2k.
As im a newbie in JDBC programming i would appreciate any guides or
tips to solve my problem.
best regards
Ehsan
|
|
|
|