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 · 1 comment
Open

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

hujiang1 opened this issue Dec 2, 2024 · 1 comment

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)

请问这个如何解决?

@plrthink
Copy link
Collaborator

plrthink commented Jan 7, 2025

have you solved this already? sorry for the later response, but could you please attach the file you're trying to unzip?

also the backtrace you posted is actually from android not ios

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

No branches or pull requests

2 participants