比如: Blob contents = (Blob) result.get("DOC_FILE_CONTENTS");contents。length = 20780;
这个20780是     20780 b,还是kb,还是?

解决方案 »

  1.   

    Blob Clob 都是用来存储普通字符存不下的数据。
      

  2.   

    包含二进制数据的 Oracle BLOB 数据类型,其最大大小为 4 GB。此数据类型映射到 Byte 类型的 Array。
      

  3.   

    这个20780表示的是什么啊?是bit 是byte 是kb,还是其他的什么?
      

  4.   

     long length() 
              Retrieves the number of characters in the CLOB value designated by this Clob object.返回的是 字符的个数
      

  5.   

    呵呵,还真没关注过这个,不过blob应该是4G
      

  6.   

    那我如何获得这个blob类型数据的大小?