How to create excel file using apache poi and upload it to S3

Hi
i am trying to create excel file using apache poi
i am uploading it to s3 using S3 put, but after upload file is getting corrupted.
any one please provide code to create excel file and upload to s3 on server

Hi,
Did you find a solution to achieve this? I try to do the same.
Thanks.

Hi,

first I created excel using list to excel plugin of WorkFusion and stored it to s3.
then I downloaded same file using s3-get plugin and converted it into file object of excel type and used apache poi to modify it.