binary protocols v. text protocols

后端 未结 8 1761
慢半拍i
慢半拍i 2020-12-12 09:27

does anyone have a good definition for what a binary protocol is? and what is a text protocol actually? how do these compare to each other in terms of bits sent on the wire?

8条回答
  •  旧时难觅i
    2020-12-12 10:09

    How can we send an image file in SOAP: Click here

    This shows that binary data is attached as such [ATTACHMENT] and its reference is saved in SOAP message.

    So, The protocol is text based and data[Image] is binary attachment whose encoding is not relevant

    Thus, SOAP is text protocol due to the way we specify Soap headers and not actual data encoded in it.

提交回复
热议问题