Creating or transforming a BLOB output message by using a graphical data map
Use the Graphical Data Mapping editor to create or transform a message using the BLOB message domain.
About this task
When you create a new map, the BLOB message
is available under the "IBM® supplied
message models" category in the map input and output selection tree.
If you select a BLOB message as the map output, the output domain
in the output message assembly is automatically set to BLOB
.
For more information about creating a new map, see Creating a message map from a Mapping node.
To populate the data
of a BLOB message, you must wire a transform that will provide hexBinary
formatted data to the child 'value' element of the message. You can
use the built-in function iib:hexBinaryValue($<var>)
in
a Custom XPath transform, to format data into the required hex binary
string.
When you transform a BLOB message, you must wire the
value element of the input BLOB message into a transform that accepts
an xsd:hexBinary
type. For example, you could use
a Move transform to set the BLOB binary data into an XML output message
element that has either an xsd:hexBinary
or xsd:base64Binary
type.
If you are transforming only the Message Assembly headers and folders (for example, Properties and Transport headers), you can pass the message body data through unmodified by using the BLOB domain and a Move transform from the BLOB input message to the BLOB output message.