Skip to content

Bedrock  >  Structures  >  ByteContentDoc

ByteContentDoc

Structure Class

ByteContentDoc dataclass

Contains the document contained in the wrapper object, along with its attributes/fields.

Attributes

content_type instance-attribute
content_type: str

The MIME type of the document contained in the wrapper object.

data class-attribute instance-attribute
data: bytes = field(repr=False)

The byte value of the file to upload, encoded as a Base-64 string.

identifier class-attribute instance-attribute
identifier: str = field(repr=False)

The file name of the document contained in the wrapper object.