OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

Attachment

public sealed record Attachment : IEquatable<Attachment>

One file to carry inside a snapshot or a recording.

Returned from the provider registered with ThermalCamera.SetAttachmentProvider(…). The bytes are copied into the file before the provider returns, so the array need not outlive the call.

Attachment: constructors

public Attachment(string Name, byte[] Data)

One file to carry inside a snapshot or a recording.

  • Name: The file name a reader should see, at most 255 bytes of UTF-8 and not empty. Names need not be unique.
  • Data: The file's content.

Returned from the provider registered with ThermalCamera.SetAttachmentProvider(…). The bytes are copied into the file before the provider returns, so the array need not outlive the call.

Attachment: properties

public bool Compress { get; init; }

Whether to deflate the payload, which is the right default.

Set it false for content that is already compressed (a JPEG, a ZIP) where it only costs time.

public byte[] Data { get; init; }

The file's content.

public string Mime { get; init; }

The MIME type, at most 255 bytes of UTF-8. Empty is recorded as application/octet-stream.

public string Name { get; init; }

The file name a reader should see, at most 255 bytes of UTF-8 and not empty. Names need not be unique.