ocr,拆分文件切换cos
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user