We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Serialization of aspose.cells.workbook

Hello,

Can I serialize an aspose.cells.workbook? I am receiving an error stating that type aspose.cells.workbook in assembly aspose.cells is not marked as serializable. I would like to save the workbook into the database and be able to retrieve it from the database. Is this something that can be added or is there another way for me to do this. Right now I am looking into serialization.

thanks,
Pete

Hi Pete,

Well, we do not support serializing Workbook Object. I think it is much better for you to save the source file (Excel file) or byte array of the source file's data into database than to save the Workbook Object into database. When you want to get the Workbook object later on, you can simply create a Workbook by building an InputStream from the file or byte array fetching from the database.
Thank you.