ReadableStream to a Uint8Array, read its contents into an ArrayBuffer with Bun.readableStreamToArrayBuffer, then create a Uint8Array that points to the buffer.
Bun.readableStreamToBytes converts to a Uint8Array directly.
See Bun’s other
ReadableStream conversion functions.