Skip to content

message.getBytes

Use when: You want to read values from the modified message during mapping. If you need the original incoming message, use source.getBytes.

Signature: message.getBytes()

Returns: byte[] messageBytes - the byte array associated with the message

Get the byte array associated with the current message.

Note

This method only applies to the following formatted messages: HL7, ASTM, Binary, CSV, DICOM, EDIFACT, Old Fxd Width, Fxd Length, ISO 8583, JSON, Text, X12, XML.

Parameters

None

Example

// Example: Retrieve the raw byte array for the current message.

// Get the message as a byte array
var messageBytes = message.getBytes(); // byte[]