//用来跟新文件
public void updata_toDB(){
Connection con = null;
PreparedStatement ps = null;
FileInputStream is = null;
String sql = "Update BomVouch Set BomVouch.cFileContent=? Where BomVouch.cBomItemId=?";
try{
if(con == null)
con = DBConnecter.getConnection();
ps = con.prepareStatement(sql);
is = new FileInputStream(xmlPath);
System.out.println("xmlPath="+xmlPath);
ps.setBinaryStream(1, is, is.available());
ps.setString(2, item_id);
ps.executeUpdate();
}catch(Exception e){
e.printStackTrace();

}finally{
if (is != null)
try {
is.close();
} catch (Exception ee) {
ee.printStackTrace();
}

try {
if (con != null) {
DBConnecter.closeConnection();
}
if (ps != null) {
ps.close();
ps = null;
}
} catch (SQLException sqle) {
sqle.printStackTrace();
}
}
}