response.setContentType("image/gif");
ServletOutputStream sos = response.getOutputStream();
.............................
InputStream is = rs.getBinaryStream("imagefield");
byte[] b = new byte[32];
int l;
while((l=is.read(b))!=-1){
sos.write(b,0,l);
}
ServletOutputStream sos = response.getOutputStream();
.............................
InputStream is = rs.getBinaryStream("imagefield");
byte[] b = new byte[32];
int l;
while((l=is.read(b))!=-1){
sos.write(b,0,l);
}
http://expert.csdn.net/Expert/topic/1147/1147358.xml?temp=.7573816