67,513
社区成员
发帖
与我相关
我的任务
分享
response.setCharacterEncoding("UTF-8");
response.setContentType("application/pdf;charset=utf-8");
FileInputStream in = new FileInputStream(new File(downLoadAgreementService.resultPath(request)));
OutputStream out = response.getOutputStream();
byte[] b = new byte[512];
while ((in.read(b)) != -1) {
out.write(b);
}
out.flush();
in.close();
out.close();
把file路径替换一下