Send byte array representation of objects across the socket