Streaming Version of 'readFile' Function

Is there a streaming version of readFile function? (as in, read N numbers of bytes at a time in a range loop or something).

Reason for asking: currently developing a WASM embedding partial function and is very concerned with current readFile function due to its “read entire file” nature when user accidentally provided a very large file. Moreover, WASM can be a large file depending on how user develops it.

Related issue: Hugo's ReadFile Function Crash Due to Non-streaming Nature · Issue #3 · ZORALab/Hestia · GitHub

No, there is not.

Noted. In that case I will raise a ticket in the GitHub and link there.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.