Skip to content

source.getBytes

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.getBytes.

Signature: source.getBytes()

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

Get the byte array associated with the source 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

// Retrieve the raw byte array associated with the source message.
var sourceBytes = source.getBytes(); // expected: byte[] representing the original message payload