Function readableStreamToArrayBuffer

  • Consumes a stream and returns a concatenated array buffer. Useful in situations where we need to read the whole file because it forms part of a larger payload containing other fields, and we can't modify the underlying request structure.

    Parameters

    • readable: ReadableStream<Uint8Array<ArrayBufferLike>>

    Returns Promise<ArrayBuffer>