The label of the active manifest.
The asset's manifest store as crJSON.
Dispose of this Reader, freeing the memory it occupied and preventing further use. Call this whenever the Reader is no longer needed.
The asset's full ManifestStore containing all its manifests, validation statuses, and the URI of the active manifest.
Resolves a URI reference to a binary object (e.g. a thumbnail) in the resource store.
URI of the binary object to resolve.
A Uint8Array of the resource's bytes.
StaticfromCreate a Reader from an asset's format and a blob of its bytes.
The C2pa instance (from createC2pa) to create this reader on.
Asset format (MIME type or extension), typically blob.type. If omitted
or empty, the native library will attempt to detect the format from the asset's bytes instead.
Always provide the format if known, and only omit this when the caller has no way to determine
the asset's format otherwise.
Blob of asset bytes.
Optional Context configuring this reader's behavior.
A Reader object or null if no C2PA metadata was found.
StaticfromCreate a Reader from an initial fragment and a subsequent fragment.
The C2pa instance (from createC2pa) to create this reader on.
Asset format (MIME type or extension). Unlike fromBlob, fragmented assets cannot be auto-detected from their bytes, so a format must be supplied.
Blob of initial fragment bytes.
Blob of fragment bytes.
Optional Context configuring this reader's behavior.
A Reader object or null if no C2PA metadata was found.
The
Readerclass supports reading C2PA data out of an asset.Example: Getting an asset's active manifest: