ocr识别-bug修改
This commit is contained in:
+2
-1
@@ -71,7 +71,8 @@ public class OcrRestfulController{
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
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");
|
||||
|
||||
String fullPath = ocrPath + fileName;
|
||||
|
||||
Reference in New Issue
Block a user