ocr识别-bug修改

This commit is contained in:
liyawei
2022-03-09 16:40:33 +08:00
parent 0fed717a74
commit f3feeae081
@@ -71,7 +71,8 @@ public class OcrRestfulController{
OutputStream os = null; OutputStream os = null;
response.reset(); response.reset();
try { try {
response.setHeader("Content-Disposition", "attachment; filename=" + fileName); String downFileName = fileName.substring(fileName.lastIndexOf("_") + 1);
response.setHeader("Content-Disposition", "attachment; filename=" + downFileName);
response.setContentType("application/octet-stream"); response.setContentType("application/octet-stream");
String fullPath = ocrPath + fileName; String fullPath = ocrPath + fileName;