***为什么oracle中blob类型超过4036就存不进去?急!!!***
超过4036的文件存进去后记录是增加了,但取出来后内容却是空的,请问是什么原因啊?
我用的方法:
String picPath="/tst.jpg";
File imgFile=new File(picPath);
sql="insert into lobdemo (key,blob_col) values (33,?)"; PreparedStatement pstmt=conn.prepareStatement(sql);
FileInputStream fis=new FileInputStream(picPath); pstmt.setBinaryStream(1,fis,(int)imgFile.length());
pstmt.executeUpdate();
pstmt.close();