So what I’m trying to do here is get a float[], convert it to byte[], send it through the network as a datagram packet and then convert it back to a byte[] at the receiving terminal.
Now I know I can convert float[] to byte[] by using the getBytes[] method. But I don’t know how to reverse the conversion.
I think you want to make use of the
ByteBufferclass, which hasputFloatandgetFloatmethods.