Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios压缩后zip上传到无法端,无法解压 #323

Open
hujiang1 opened this issue Dec 2, 2024 · 0 comments
Open

ios压缩后zip上传到无法端,无法解压 #323

hujiang1 opened this issue Dec 2, 2024 · 0 comments

Comments

@hujiang1
Copy link

hujiang1 commented Dec 2, 2024

  console.log("压缩中。。。。");
    // 使用修改后的压缩参数
    const zipString = await zip(uploadTmpPathDir, targetPath);
    console.log("压缩完成。。。。", zipString);

使用zip压缩文件后,android在服务端可以正常解压,iOS在服务端解压报错,我本地用unzip是可以正常解压,且文件正常

java.util.zip.ZipException Create breakpoint: invalid entry size (expected 0 but got 1329 bytes)
at java.util.zip.ZipInputStream. readEnd (ZipInputStream. java: 384)
at java.util.zip.ZipInputStream.read (ZipInputStream.java:196)
at java.10.FilterInputStream.read (FilterInputStream. java:10)
at com.wair.schedule.UnifiedLogHandlerSchedule.unzipFile (UnifiedLogHandlerSchedule.java:178)
at com.wair.schedule.UnifiedLogHandlerSchedule.main (UnifiedLogHandlerSchedule.java:155)
Exception in thread "main" java. lang.NullPointerException Create breakpoint
at com.wair.schedule.UnifiedLogHandlerSchedule.main (UnifiedLogHandlerSchedule.java:156)

请问这个如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant