use rpc encoding to send/receive bin data.