@contentauth/c2pa-js
    Preparing search index...

    A collection of functions that permit the creation of Reader objects from various sources.

    interface ReaderFactory {
        fromBlob: (format: string, blob: Blob) => Promise<Reader>;
        fromBlobFragment: (
            format: string,
            init: Blob,
            fragment: Blob,
        ) => Promise<Reader>;
    }
    Index

    Properties

    fromBlob: (format: string, blob: Blob) => Promise<Reader>

    Create a Reader from an asset's format and a blob of its bytes.

    Type Declaration

      • (format: string, blob: Blob): Promise<Reader>
      • Parameters

        • format: string

          Asset format

        • blob: Blob

          Blob of asset bytes

        Returns Promise<Reader>

        An object that provides methods for reading C2PA data from the provided asset.

    fromBlobFragment: (
        format: string,
        init: Blob,
        fragment: Blob,
    ) => Promise<Reader>