How to store and download Workbook on local storage

Hi ,

I had created an Xlsx file
Workbook hwb = new XSSFWorkbook();

But i am unable to write xlsx file on local storage.

I tried temporaryStorage.putFileIntoStorage which is used to store uploaded files on local storage
but unable to store xlsx files which is created manually.

Also how to download files which are stored in the local storage.

Have you tried to use FileStorage saveStream/openStream methods as explained in Using File Storage :: Jmix Documentation?

I had tried FileStorage saveStream/openStream it worked thank you for help.