Use putBytes/getRemoteBytes throughout.