日期:2014-05-18 浏览次数:20813 次
try {
String filename="D:\\TempData1.txt";
FileInputStream str=new FileInputStream(filename);
filename = "D:\\TempData2.txt";
FileInputStream str1 = new FileInputStream(filename);
PreparedStatement pstmt = con.prepareStatement("{call dbo.S_submit(?,?,?,?)}");
pstmt.setString(1, num.getText());
pstmt.setString(2, "1");
pstmt.setBinaryStream(3, str);
pstmt.setBinaryStream(4, str1);
//pstmt.execute();
//ResultSet rs = pstmt.executeQuery();
//rs.close();
pstmt.close();
}
catch (Exception e) {
e.printStackTrace();
}