Converts a Uint8Array to a ReadableStream.
Creates a stream that emits the Uint8Array as a single chunk then closes.
The Uint8Array to convert to a stream
ReadableStream containing the Uint8Array
const bytes = new Uint8Array([72, 101, 108, 108, 111]);const stream = uint8array2stream(bytes); Copy
const bytes = new Uint8Array([72, 101, 108, 108, 111]);const stream = uint8array2stream(bytes);
Converts a Uint8Array to a ReadableStream.
Creates a stream that emits the Uint8Array as a single chunk then closes.