@opentdf/sdk
    Preparing search index...

    Function sourceToStream

    • Converts a Source object to a ReadableStream.

      Parameters

      • source: Source

        A Source object containing the type and location of the data. Converts the source to a ReadableStream of Uint8Array. This is useful for streaming data from various sources like files, remote URLs, or chunkers.

      Returns Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>

      A ReadableStream of Uint8Array.