How do I convert a long
to a byte[]
and back in Java?
I’m trying convert a long
to a byte[]
so that I will be able to send the byte[]
over a TCP connection. On the other side I want to take that byte[]
and convert it back into a double
.