Convert string to byte and back again

The function CAN.readDATA_ff_0 is definitely correct.
The length does need to be known as far as i know, but even if not it will be useful for me to know at the receiver side.
frame_data is a byte array.

Thanks for the help and suggestions, I hope this clears up your questions.