Class ProvidedImage

Represents a provided image file. Data of this type is returned by FileProviders. The contained image data is then sent as a response to the HTTP request.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

contentType: string

The content type of the file.

data: string

The file data.

id: number

The ID of the file.

label: string

The label of the file.

Methods

  • Creates a new ProvidedImage instance from a Data URL.

    Parameters

    • dataUrl: string

      The Data URL representing the image.

    • id: number

      The ID of the image.

    • label: string

      The label of the image.

    Returns ProvidedImage

    • The created ProvidedImage instance.

    Throws

    • If the provided Data URL is invalid.

Generated using TypeDoc