Răsfoiți Sursa

读取长度

lgs 11 luni în urmă
părinte
comite
0b9a1dbb74

+ 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);