对于long型的,使用下面的方法。
String  sSql  =  "INSERT  INTO  news   VALUES(??)";PreparedStatement   pstmt  =  con.prepareStatement(sSql);
  String  title=request.getParameter("title");
  String  content=request.getParameter("txt");
  byte[]  pic  =  content.getBytes("8859_1");
  ByteArrayInputStream  baisss  =  new  ByteArrayInputStream(pic);
  InputStreamReader  bais  =  new  InputStreamReader(baisss,"8859_1");
  pstmt.setString(1,title);
  pstmt.setCharacterStream(2,bais,pic.length);
  pstmt.execute();