# Encode Byte Stream Data

The Encode Byte Stream Data Block is used to convert a string to a byte array, based on the specified string encoding.

The block has a single input pin, which accepts a string to encode, and a single output pin, which outputs the encoded byte array. When the block is executed, the input string is converted to a byte array, using the specified encoding, and the result byte array overwrites the output pin's content.

Setting | Description
--- | ---
Encoding | Sets the type of encoding to use. By default, Unicode (UTF-8) is set.