public void readtext() throws Exception{
Connection con = DBfactory.getConnection();
Statement st =con.createStatement();
ResultSet rs = st.executeQuery("select * from note where id =101");
rs.next();
InputStream in = rs.getAsciiStream("content");
byte [] bs = new byte[1024];
int len = 0;
while((len=in.read(bs))!=-1){
String str = new String(bs, 0, len);
System.err.print(str);
执行成功了,文件也读取出来了,就是以下的代码不知道什么意思
InputStream in = rs.getAsciiStream("content");
byte [] bs = new byte[1024];
int len = 0;
while((len=in.read(bs))!=-1){
String str = new String(bs, 0, len);
System.err.print(str);