NBElementConvert ToByteArray Method (NBElement, String)IBM Integration Bus
Returns the value of the NBElement passed in after first converting it to a Byte Array if required with the specified format.

Namespace: IBM.Broker.Plugin
Assembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
Syntax

public static byte[] ToByteArray(
	NBElement value,
	string format
)

Return Value

Type:  OnlineByte 
The current element's value converted to a ByteArray data type using the specified format.
Exceptions

ExceptionCondition
OnlineSystem FormatExceptionThrown if the value can not be converted to a ByteArray using specified format.
Remarks

The format string uses the syntax documented in the Information Center in the topic "Formatting and parsing numbers as strings (ak05615)".
See Also