#Define chunk size of Bun.file stream.

1 messages · Page 1 of 1 (latest)

wind robin
#

Is there a way to set the max chunk size of a bun file stream?

wild cedar
#

Bun.file(path).stream({chunkSize: 123456})

#

it's not strictly followed, if a file is known to be a much different size it might choose a closer chunk size