Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

excel4node and Azure Functions #346

Open
ikochetkov opened this issue Sep 13, 2021 · 1 comment
Open

excel4node and Azure Functions #346

ikochetkov opened this issue Sep 13, 2021 · 1 comment

Comments

@ikochetkov
Copy link

Hi !
Using currently excel4node with expressJS. Sending the object and receiving binary data of excel
Want to go away from local server and move it to Azure Functions. Can someone tell is it possible and maybe someone has example how it should looks like?

@ikochetkov
Copy link
Author

Adding some details here:
So AF using the following synthax to send the data back
module.exports = async function (context, req) { try { context.res = { body: "Success!" }; } catch(error) { const err = JSON.stringify(error); context.res = { status: 500, body: Request error. ${err} }; } };

So looks like we can use our method:
wb.write('Excel.xlsx', res);
but instead res - context.res.

However, this not work. Any suggestions guys how return excel from Azure Functions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant