Header menu logo Nao

IResourceStore Type

Persists extracted binary resources to local storage. Readers call `Save` to extract embedded media out of a source document and get back a relative path to reference from a `Resource`; writers call `TryOpen` to read the bytes back when they need to embed or copy them into the target.

Instance members

Instance member Description

this.Save

Full Usage: this.Save

Parameters:
    suggestedName : string
    mediaType : string
    bytes : byte[]

Returns: string
Modifiers: abstract

Save bytes and return the relative path (e.g. "resources/img-001.png") to be stored on `Resource.LocalPath`.

suggestedName : string
mediaType : string
bytes : byte[]
Returns: string

this.TryOpen

Full Usage: this.TryOpen

Parameters:
    localPath : string

Returns: Stream option
Modifiers: abstract

Open a previously-saved resource by its relative path, if it exists.

localPath : string
Returns: Stream option

Type something to start searching.