ITeye博客

常用简单1

mlaaalm · 2010-07-07 15:36 · IO · 非技术 · Markdown

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:

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。