ocr,拆分文件切换cos

This commit is contained in:
liyawei
2022-06-10 12:17:29 +08:00
parent 7b8707bec5
commit b8e0ee3a11
5 changed files with 67 additions and 37 deletions
@@ -51,7 +51,7 @@ public class SplitFileController {
try(OutputStream os = response.getOutputStream();
/*FileInputStream fis = new FileInputStream(fileUrl);*/) {
if (CosBootUtil.doesObjectExist(fileUrl)) {
FileInputStream fis = (FileInputStream) CosBootUtil.download(fileUrl);
InputStream fis = CosBootUtil.download(fileUrl);
int len = 0;
while ((len = fis.read()) != -1) {
os.write(len);