Aspose-Workbook Java Issue

Hi

I am looking for some example like download the workbook to
local download(when we call rest service) folder using the aspose workbook…

I have saved the work book as below.

ByteArrayOutputStream outputStream = new ByteArrayOutputStream()

workbook.save(outputStream, FileFormatType.XLSM);

Not sure how to proceed further.

Your suggestion would be very

Hi,

Thank you for contacting support. We require more details regarding the use case which you are seeking to implement. Please also confirm which Aspose.Cells API are you using? You may be using Aspose.Cells for Java or Aspose.Cells for Cloud (Java platform) API. Anyways, you can save the output stream to a local file as shown in the code example below:
[Java]

ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
workbook.save(byteArrayOutputStream, FileFormatType.XLSM);

try
{
	OutputStream outputStream = new FileOutputStream(“thefilename”))
	byteArrayOutputStream.writeTo(outputStream);
}
catch(IOException ioe)
{
	// Handle exception here
	ioe.printStackTrace();
}
finally
{
	outputStream.close();
}

Hi,


thank you very much for your support.

Regards,
Krishna