main
黄海 2 years ago
parent c2463a41ec
commit 992dea445b

@ -828,6 +828,10 @@ public class CollectController extends Controller {
if (type_id == 2) {
String pdfPath = excelPath.replace(".xlsx", ".pdf");
AsposeUtil.xls2pdf(excelPath, pdfPath);
/**
* java.io.IOException: UT010029: Stream is closed
* HttpServletrequestresponse, 使
*/
OutputStream outputStream = getResponse().getOutputStream();
outputStream.write(FileUtil.readBytes(pdfPath));
outputStream.flush();

Loading…
Cancel
Save