optris::sdk::rec::Attachment
A file carried inside a snapshot or a recording. data is copied while the file is being written and need not outlive the call.
Public attributes
name
std::string name
File name as it should appear to a reader, e.g. "calibration.bin". Must be non-empty and at most 255 bytes of UTF-8; names are not required to be unique.
mime
std::string mime
MIME type, e.g. "application/octet-stream". At most 255 bytes. Empty is written as "application/octet-stream".
data
std::vector< std::byte > data
File content, verbatim.
compress
bool compress = true
Deflate the payload on the way out. Leave enabled unless the content is already compressed (JPEG, ZIP, ...), where it only costs time.