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.