Convert bytes to byte array
I am having problems trying to pass data through streams.
The Output streams I do not think are letting me pass data that is not of primitive type. I was trying to pass a byte and it was coming up null everytime on the other end. My idea is to pass in a loop a bunch of bytes and then put them into a bytearray on the other side. To me it makes sense. I have had some issues trying to perform this conversion.
It is possible to convert several bytes into a byte array, correct?
Thanks a lot,