public static boolean insertMstxHead(String tdis, File fileName, int uid) {
		boolean result = false;
		Connection con = DBUtil.getConnection();
		PreparedStatement pstmt = null;
		FileInputStream fis = null;// TODO
		int id = getMaxNumber("mstx_head");
		updateMaxNumber(1);// 将该字段值加1
		try {
			fis = new FileInputStream(fileName);
			pstmt = con.prepareStatement("insert into mstx_head(tid,tdis,tdata,uid) values(?,?,?,?)");
			pstmt.setInt(1, id);
			pstmt.setString(2, tdis);
			pstmt.setBinaryStream(3, fis, (int) fileName.length());
			pstmt.setInt(4, uid);
			result = pstmt.execute();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				if (fis != null) {
					fis.close();
					fis = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
			try {
				if (pstmt != null) {
					pstmt.close();
					pstmt = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
			try {
				if (con != null) {
					con.close();
					con = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

		return result;
	}