Thanks for the input. Yes I see my mistake by not defining Buf() as a UByte
What I'm trying to do is send a binary file to an embedded device that uses XMODEM for its transfer protocol (yes I know that's antiquated but it's a legacy device and I'm stuck with it)
I read the file in 128 byte groups, load the array with each byte and then need to output to the embedded device using XMODEM protocols. That is why I asked about being able to do a binary send of the complete array without any LF or CR.
Brilliant discussion with a lot of info to pick up from - including FXMs "Nth time" advice that people can read without FXM repeating it (N+x)th time also - I mean if only people knew that all the info about IDEs and use of binary were buried here next to the info about the arrays. (I knew about the possibility to set IDE options but have not started to give compiler options a serious look , but I will see if I can remember FXMs "Nth time" advice)