pstmt.setBinaryStream(1, fileinput, (int)f1.length() );
can insert only upto 4k of data, if you need to do more than 4k then you got to get a Blob out and then stream the data into the blob.
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html
can insert only upto 4k of data, if you need to do more than 4k then you got to get a Blob out and then stream the data into the blob.
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货