forked from monitorjbl/excel-streaming-reader
-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Reading first row from first sheet before full file available? #38
Comments
This is not an issue in this library. The exception happens in java.util.zip.ZipFile |
Understood. But it might be worthwhile to clarify to your audience that your streaming API cannot control whether any of its dependencies do non-streaming things (case in point), and that the memory and speed benefits of streaming may therefore be adversely impacted. For our use case, it meant we couldn't use this library. Nevertheless, thank you for making this library available. Kind Regards.
…________________________________
From: PJ Fanning ***@***.***>
Sent: Wednesday, March 10, 2021 4:34 PM
To: pjfanning/excel-streaming-reader ***@***.***>
Cc: David Barron ***@***.***>; Author ***@***.***>
Subject: Re: [pjfanning/excel-streaming-reader] Reading first row from first sheet before full file available? (#38)
This is not an issue in this library. The exception happens in java.util.zip.ZipFile
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#38 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABIYKLTQSZNUP4SNH7IN6P3TC7QXZANCNFSM4Y4IYLVA>.
|
#103 (comment) - similar use case and my answer is applicable here too |
@david5w did you find a way to fit your use case? |
We have not.
…________________________________
From: Vinícius Lara ***@***.***>
Sent: Tuesday, March 15, 2022 2:53 PM
To: pjfanning/excel-streaming-reader ***@***.***>
Cc: David Barron ***@***.***>; Mention ***@***.***>
Subject: Re: [pjfanning/excel-streaming-reader] Reading first row from first sheet before full file available? (#38)
@david5w<https://github.com/david5w> did you find a way to fit your use case?
—
Reply to this email directly, view it on GitHub<#38 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABIYKLQIAKA5DUG7NFHJXPTVADMCHANCNFSM4Y4IYLVA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this library. Is it reasonable to expect this library to enable access to the first row in the first sheet, when the file is not yet completely available (still sequentially arriving)? Based on the nature of the error, it seems like the underlying ZIP might disallow this.
When I try the following, I get the resulting exception.
org.apache.poi.openxml4j.exceptions.InvalidOperationException: Can't open the specified file: '<...>.xlsx'
at org.apache.poi.openxml4j.opc.ZipPackage.(ZipPackage.java:137)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:252)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:201)
at com.github.pjfanning.xlsx.impl.StreamingWorkbookReader.init(StreamingWorkbookReader.java:117)
at com.github.pjfanning.xlsx.impl.StreamingWorkbookReader.init(StreamingWorkbookReader.java:93)
at com.github.pjfanning.xlsx.StreamingReader$Builder.open(StreamingReader.java:247)
<...>
Caused by: java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1585)
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1439)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1448)
at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1249)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1211)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:701)
at java.base/java.util.zip.ZipFile.(ZipFile.java:240)
at java.base/java.util.zip.ZipFile.(ZipFile.java:171)
at java.base/java.util.zip.ZipFile.(ZipFile.java:185)
at org.apache.poi.openxml4j.util.ZipSecureFile.(ZipSecureFile.java:105)
at org.apache.poi.openxml4j.opc.internal.ZipHelper.openZipFile(ZipHelper.java:158)
at org.apache.poi.openxml4j.opc.ZipPackage.(ZipPackage.java:135)
<...>
The text was updated successfully, but these errors were encountered: