I am trying to read a zip file having size approximately equal to 300 mb , which when unzipped comes to 4.5 gb
while executing i am getting below error:
Caused by: java.util.zip.ZipException: invalid entry size (expected 4294967295 but got 5230434248 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:376)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:148)
The file consist of approximately 9993030 records.
Below is the code snippet that i am running
The above code reads 9993023 lines of data after that it ends with the error message invalid entry size (expected 4294967295 but got 5230434248 bytes)
Unzipped the file and then read it using java was able to read all the records.
ZipInputStream internally use inflater class. After reading 9993023 line on next read the Inflater class read method returns 0 as read bytes because of which the EOF is set and we get the above error.
Ideally Inflater should return some bytes as still the records exists.
Is there and issue with the Inflater class of java and why is it not able to read the rest of the records.
Any help appreciated!!
while executing i am getting below error:
Caused by: java.util.zip.ZipException: invalid entry size (expected 4294967295 but got 5230434248 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:376)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:148)
The file consist of approximately 9993030 records.
Below is the code snippet that i am running
The above code reads 9993023 lines of data after that it ends with the error message invalid entry size (expected 4294967295 but got 5230434248 bytes)
Unzipped the file and then read it using java was able to read all the records.
ZipInputStream internally use inflater class. After reading 9993023 line on next read the Inflater class read method returns 0 as read bytes because of which the EOF is set and we get the above error.
Ideally Inflater should return some bytes as still the records exists.
Is there and issue with the Inflater class of java and why is it not able to read the rest of the records.
Any help appreciated!!