The “Get Data (File)” node returns a byte array (the filesystem plugin works with bytes).
I don’t understand what you mean with the second thing.
Do you want to send over an array of integers? Because the ByteDataReader/Writer can read and write integer arrays.
Anyway, the way I converted objects to and from bytes was with either one of these two methods:
Lets say each object has 2 integers and 1 string.
Method 1: Send an integer (object count), then for loop that many times, during each loop you send two integers and 1 string with the ByteDataWriter class.
Method 2: Send 3 arrays (1 array for each variable, so 2 integer arrays and 1 string array in this example).
Method 1 is faster (since you don’t have to create arrays first that are filled with the values of each object), but method 2 is more error proof.
If in method 2 not every array has the same length, you know the data is incorrect. With method 1 there is no way of knowing this.
I’d go for performance (method 1), since the data communication is local and thus errors are unlikely to happen.
I hope that helped.