Convert a Uint8Array, Blob, ReadableStream, or async iterable into a ContentSource. When passing a ReadableStream or async iterable, the size parameter is required.
size
The content to wrap.
Optional
The total byte length, required for forward-only inputs.
A ContentSource adapter for the given input.
If input is forward-only and size is not provided.
Convert a Uint8Array, Blob, ReadableStream, or async iterable into a ContentSource. When passing a ReadableStream or async iterable, the
sizeparameter is required.