Browse Source

读取长度

lgs 11 months ago
parent
commit
0b9a1dbb74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/kexun/service/impl/ReportFileServiceImpl.java

+ 1 - 1
src/main/java/com/kexun/service/impl/ReportFileServiceImpl.java

@@ -93,7 +93,7 @@ public class ReportFileServiceImpl extends ServiceImpl<ReportFileMapper, ReportF
                 }
                 File file = new File(filePath);
                 if (file.exists()) {
-                    byte[] bytes = new byte[1024];
+                    byte[] bytes = new byte[4096];
                     ZipEntry entry = new ZipEntry(file.getName());
                     zipOutputStream.putNextEntry(entry);
                     FileInputStream fileInputStream = new FileInputStream(file);