Skip to content

message.getDICOMBytesForFile

Signature: message.getDICOMBytesForFile()

Returns: byte[] bytes - the DICOM byte array

Get the byte array associated with the current message with the appropriate DICOM preamble and attributes (File Meta Information data set) needed for a DICOM file at rest on the file system.

Parameters

None

Example

// Given a DICOM message (message)
// Write the DICOM message to disk with the proper file preamble and File Meta Information
qie.writeFile(
    "/tmp/foot.dcm",
    message.getDICOMBytesForFile()
);

// Result:
// - /tmp/foot.dcm is a valid DICOM file on disk