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();
}