java.io.IOException: It is not a valid excel2007 file: Unexpected end of ZLIB

Hi,

we are using aspose cells 2.0.0 version

please find my code below:

private Workbook workBook(byte[] buf) throws IOException {
Workbook book = new Workbook();
book.open(new ByteArrayInputStream(buf));
return book;
}

when ever i calling workBook i am getting follwing error.

java.io.IOException: It is not a valid excel2007 file: Unexpected end of ZLIB in
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at cpm.diag.AsposeDiag.workBook(AsposeDiag.java:58)
at cpm.diag.AsposeDiag.createWorkbookFromByteArrayTest(AsposeDiag.java:2
at cpm.diag.AsposeDiag.main(AsposeDiag.java:66)

Please let us know how to fix this issue.

Regards,
Ramesh

Hi,

Thanks for your posting and using Aspose.Cells for Java.

You are using quite an older version. Please download and try the latest version: Aspose.Cells
for Java v7.5.0.1
to see if it resolves your issue.

We recommend you to upgrade your application as we do not provide fixes based on older versions.

If your issue still persist, please provide us your source file. We will look into your issue and help you asap.