WriteBytesToFile (String filePath, ByteArray bytes)


In this example, we are passing the required parameters to the function transformation object using a Variables object and a ToBytes function transformation object. We will be writing the byte array, “48656C6C6F20576F726C64”, into a new, empty Test.txt file.


filePath = C:\Users\Kanwal.Azim\OneDrive - Astera Software\Desktop\Test.txt

bytes = 48656C6C6F20576F726C64

Right-click on the function transformation object and select Preview Output. While the Data Preview will not generate an output, a new file with the specfied name will be created at the specified loaction, and the provided byte array will be written to this file, after being converted into a string value.

Last updated

© Copyright 2023, Astera Software