Skip to content

message.setDICOMPreamble

Signature: message.setDICOMPreamble(bytes)

Returns: void

Set the preamble bytes.

Parameters

Type Name Description Default
byte[] bytes new preamble bytes to use (max of 128 bytes)

Example

// Example: Set the DICOM file preamble bytes. (max 128 bytes)

// assumes `message` is a DICOM message model object

// Set a custom DICOM preamble (max 128 bytes)
message.setDICOMPreamble(
    new java.lang.String("QIE Custom Preamble").getBytes("US-ASCII") // byte[]
);