Hi,
I’ve got the following code:
import com.aspose.cells.*
import java.io.File
import java.io.FileInputStream
val loadOptions = LoadOptions(LoadFormat.XLSX)
val workbook = Workbook(FileInputStream(File("/Users/mdeaconu/Downloads/4sheets-10m.xlsx")), loadOptions)
that runs on an Excel spreadsheet generated with Aspose as well. I’ve open it up in Excel and other editors and the file is not corrupted.
Blockquote
Exception in thread “main” com.aspose.cells.CellsException: File is corrupted
at com.aspose.cells.v7d.warning(Unknown Source)
at com.aspose.cells.h4.a(Unknown Source)
at com.aspose.cells.c3p.a(Unknown Source)
at com.aspose.cells.l__.a(Unknown Source)
at com.aspose.cells.l__.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
Document is available for download here: 4sheets-10m-x copy 9 (4) (2) (1).xlsx - Google Sheets