feat: There is no way the

This commit is contained in:
super_liu
2021-08-25 17:20:45 +08:00
parent b2884bac9d
commit 71aba6aa2d
@@ -164,8 +164,8 @@ public class OCRRestfulServiceImpl implements OCRRestfulService {
saveWordFileName=UUIDUtils.randomUUID20()+"_"+wordFile.getOriginalFilename(); saveWordFileName=UUIDUtils.randomUUID20()+"_"+wordFile.getOriginalFilename();
saveWordFilePath=ocrFilePath+saveWordFileName; saveWordFilePath=ocrFilePath+saveWordFileName;
logger.info(saveWordFilePath); logger.info(saveWordFilePath);
//FileUtils.copyInputStreamToFile(wordFile.getInputStream(),new File(saveWordFilePath)); FileUtils.copyInputStreamToFile(wordFile.getInputStream(),new File(saveWordFilePath));
savePic(wordFile.getInputStream(),saveWordFilePath); // savePic(wordFile.getInputStream(),saveWordFilePath);
logger.info("word存储完成"); logger.info("word存储完成");
} }
String saveJsonFilePath=null; String saveJsonFilePath=null;
@@ -174,8 +174,8 @@ public class OCRRestfulServiceImpl implements OCRRestfulService {
saveJsonFileName=UUIDUtils.randomUUID20()+"_"+jsonFile.getOriginalFilename(); saveJsonFileName=UUIDUtils.randomUUID20()+"_"+jsonFile.getOriginalFilename();
saveJsonFilePath=ocrFilePath+saveJsonFileName; saveJsonFilePath=ocrFilePath+saveJsonFileName;
logger.info(saveJsonFilePath); logger.info(saveJsonFilePath);
//FileUtils.copyInputStreamToFile(jsonFile.getInputStream(),new File(saveJsonFilePath)); FileUtils.copyInputStreamToFile(jsonFile.getInputStream(),new File(saveJsonFilePath));
savePic(jsonFile.getInputStream(),saveJsonFilePath); // savePic(jsonFile.getInputStream(),saveJsonFilePath);
logger.info("Json存储完成"); logger.info("Json存储完成");
} }
//开始将文件保存至数据库中 //开始将文件保存至数据库中