不知这个和你的提交类型有没有关系。即用Post或用Get,建议可以试一试。
不过,我觉得奇怪的是你怎么用long字段存放?

解决方案 »

  1.   

    因为文章内容要求很长,不用long字段如何存放?
      

  2.   

    varchar2最长可放多少,在Oracle.
      

  3.   

    有时行是什么情况,
    是不是输的都是数字。
    汗字能用Long来存放吗?
    用Varchar2,他是边长的。
    肯定够你用。
      

  4.   

    varchar2最多放4000个字节,我希望放8000个汉字,怎么办?
      

  5.   

    大家快帮帮忙
    http://www.csdn.net/expert/topic/689/689587.xml?temp=.2042658
      

  6.   

    老大:用long也能入chinese?不会吧对了,用varchar2放的数据如何>4000怎么办呢?请指点
      

  7.   

    varchar2 可以存放4000个字节的内容
    将文本内容保存到数据库中时候,建议你以二进制的形式
    保存到数据库中,取得时候再以二进制的方式读出来,
    差不多就可以了。如果帖子的内容不超过2000字,则可以使用
    varchar2类型保存
      

  8.   

    读取的时候 使用  smt.getBinary();
    尝试以下
      

  9.   

    在ORACLE用CLOB字段;
    在SQL用TEXT字段;我已经实现用JSP读写,如需要可以具体交流!
      

  10.   

    4. Streams: Long columns in JDBC are streamed.   
       * To set a long (Stream) column
         pstmt.setAsciiStream (1, <input-stream>, <input-stream-length>);     If the string data is in Unicode format, then use setUnicodeStream.
         pstmt.setUnicodeStream (1, <input-stream>, <input-stream-length>);     For long raw columns, use setBinaryStream
         pstmt.setBinaryStream (1, <input-stream>, <input-stream-length>);
       
         create table streamexample (data long)     PreparedStatement pstmt =
          conn.prepareStatement ("insert into streamexample values (?)");
         InputStream is = new FileInputStream ("notes.txt");
         File file = new File ("notes.txt");
         pstmt.setAsciiStream (1, is, (int)file.length ());   
       * To retrieve a long column
         ResultSet rset =
          stmt.executeQuery ("select * from streamexample");
         
         InputStream ascii_data = rset.getAsciiStream (1);     // Loop, reading from the gif stream and writing to the file
         int c;
         while ((c = ascii_data.read ()) != -1)
            Systemm.out.print(c);---------------
    [email protected]