Skip to main content
Version: Next

File Attachment

A File attachment encoded in the form of a data URI. Can be added to a Message.

Schema

https://fdc3.finos.org/schemas/next/context/fileAttachment.schema.json (github)

Type

fdc3.fileAttachment

Properties

data (required)

type: object

Subproperties:

name (required)

type: string

The name of the attached file

dataUri (required)

type: string

A data URI encoding the content of the file to be attached

Example

{
"type": "fdc3.fileAttachment",
"data": {
"name": "myImage.png",
"dataUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII"
}
}