**文件写入流**
/* FileInputStream inputStream = new FileInputStream(f);
//通过response获取ServletOutputStream对象(out)
ServletOutputStream out = response.getOutputStream();;
int b = 0;
byte[] buffer = new byte[1024];
while ((b = inputStream.read(buffer))!= -1) {
//写到输出流(out)中
out.write(buffer, 0, b);
}
inputStream.close();
out.close();
out.flush();*/
08-23
896
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-16
2337
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交