readLinesWith(Binary, String): Array<String>
Splits the specified binary content into lines and returns the results in an array.
Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later.
Parameters
| Name | Description |
|---|---|
|
Binary data to read and split. |
|
String representing the encoding to read. |
Example
This example transforms binary content, which is separated into new
lines (\n), in a comma-separated array.