Is it possible to get back workbook as a stream and upload it onto some server? #455
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#455
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I am working with js-xlsx and my requirement is something like, I have json data out of which I will create a workbook and I want to convert workbook to a read stream and upload it onto some server. I couldn't figure out a way to do this with current functionality provided. Am I missing anything, is there a way to do this?. Some help needed. Thanks in advance.
Break it down to steps:
To upload, the most popular approach is probably the request module.
If you specifically need CSV, there is a CSV stream writer:
For other formats you need to use
XLSX.write
orXLSX.writeFile
. For example, the request documentation shows how to upload a file by filename. That is easily adapted:If you don't want to use a temporary file, you can get the raw buffer and use request:
facing this issue still
I am facing some similar issue
In this particular code I am not able to display workbook on my screen in even binary form
and if I write it in file according to the documentation still the file is empty