常用简单1
OutputStream out = response.getOutputStream();
InputStream is = new FileInputStream(strPicPath);
byte[] b = new byte[1024];
int len;
while ( ( len=is.read(b)) != -1){
out.write(b,0,len);
}
out.flush();
out.close();
is.close();
JSPPath:
ServletPath: