excelize-wasm icon indicating copy to clipboard operation
excelize-wasm copied to clipboard

Streamig writer

Open PetrChalov opened this issue 1 year ago • 6 comments

Hi! Whether to stream write to a file or write to a WritableStream?

PetrChalov avatar Sep 28 '24 13:09 PetrChalov

Thanks for your issue. Because the limitation about browser writes local disk files, there is no stream mode function provided in the Web Assembly ports version of the library.

xuri avatar Oct 07 '24 10:10 xuri

Thanks for your issue. Because the limitation about browser writes local disk files, there is no stream mode function provided in the Web Assembly ports version of the library.

希望可以对 在 node 环境下 运行 进行 stream 的支持。

hzgotb avatar Oct 18 '24 16:10 hzgotb

Thanks for your issue. Because the limitation about browser writes local disk files, there is no stream mode function provided in the Web Assembly ports version of the library.

希望可以对 在 node 环境下 运行 进行 stream 的支持。

Stream is supported both in the web environment and in the node.js https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream

PetrChalov avatar Oct 19 '24 19:10 PetrChalov

Thanks for your issue. Because the limitation about browser writes local disk files, there is no stream mode function provided in the Web Assembly ports version of the library.

希望可以对 在 node 环境下 运行 进行 stream 的支持。

Stream is supported both in the web environment and in the node.js https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream

I mean, I hope this repo can support WritableStream when App it is Node App.

hzgotb avatar Oct 25 '24 23:10 hzgotb

@xuri whenever you can, don't you mind describing a bit why this is not possible? I have been recently using the library and it's amazing, maybe I or any other user could help you with this. Thanks!

mgtitimoli avatar Jul 14 '25 15:07 mgtitimoli

What if instead of building the entire workbook in memory and then calling WriteToBuffer() (which causes memory spikes), We're able to use StreamWriter with an in-memory buffer to write incrementally.

The streaming API doesn't need disk access - it just needs to write to an in-memory buffer that can be exposed to JavaScript.

ahmad-cod avatar Aug 22 '25 16:08 ahmad-cod