I am not able to read workbook downloaded from outlook mail through java. I am getting below exception while creating new workbook:
java.lang.NullPointerException
at com.aspose.cells.zalo.A(Unknown Source)
at com.aspose.cells.zalo.z(Unknown Source)
at com.aspose.cells.zalo.y(Unknown Source)
at com.aspose.cells.zalo.a(Unknown Source)
at com.aspose.cells.zalk.d(Unknown Source)
at com.aspose.cells.zalk.b(Unknown Source)
at com.aspose.cells.zalk.w(Unknown Source)
at com.aspose.cells.zalk.d(Unknown Source)
at com.aspose.cells.zalj.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
I am using aspose cells 9.0.0 version. Please help.
@rst01,
Thank you for your query. It seems that you are not initializing the pointer to beginning of the stream. Ensure that you are handling the stream properly. If this is not the issue, please save the downloaded stream into a file and try to load it into workbook. If it raises some error, please share your runnable console application and downloaded stream in a file for our testing. We will analyze the data here and provide assistance accordingly.
@rst01,
Thank you for sharing code snippet which is although not a runnable console application as requested in the previous post. However, the sample file is must required to reproduce the issue here. Please save the stream to some file along with the valid file extension and attach here with the thread for our testing. We will use it to reproduce the issue here and provide our feedback.