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();
}
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.