Skip to content

source.getDICOMPreamble

Use when: You want to read values from the original incoming message before any mapping changes. If you need the modified message during mapping, use message.getDICOMPreamble.

Signature: source.getDICOMPreamble()

Returns: byte[] preambleBytes - the preamble bytes or null if none exist

Get the DICOM preamble.

Parameters

None

Example

// Example: Retrieve the DICOM preamble bytes.

// Get the DICOM preamble
var preambleBytes = source.getDICOMPreamble();

// preambleBytes is a byte[] if present, or null if the DICOM has no preamble