i am getting a blob from the Get API
with response shown here
logic to create file like so after getting the response.
const url = URL.createObjectURL(new Blob([result], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }))
const link = document.createElement('a');
link.href = url;
link.innerText = 'Open the array URL';
link.setAttribute('download', 'myExcel.xlsx');
link.click();
its creating corrupted excel file.