我用的是 Tomcat5.0 + SqlServer2000 !
知道请告诉一下好吗?

解决方案 »

  1.   

    read from db:
    InputStream isPhoto = rs.getBinaryStream("Photo");write into db:
    byte[] photo;
    ......
    pstmt.setBinaryStream(1, new ByteArrayInputStream(photo), photo.length);
      

  2.   

    One more question:
      Is the binary type data's size limited?
      I only know BLOB!
      

  3.   

    read from db:
    InputStream isPhoto = rs.getBinaryStream("Photo");我现在应该怎么样对 isPhoto  进行处理,好比把它显示出来?
    Photo 里装的是上传文件。