Changed client to accept the byte array