sending all data as base64 encoded to allow sending of binary data