Binary Data in JSON String. Something better than Base64

后端 未结 15 1311
一向
一向 2020-11-21 23:03

The JSON format natively doesn\'t support binary data. The binary data has to be escaped so that it can be placed into a string element (i.e. zero or more Unicode chars in d

15条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-21 23:45

    BSON (Binary JSON) may work for you. http://en.wikipedia.org/wiki/BSON

    Edit: FYI the .NET library json.net supports reading and writing bson if you are looking for some C# server side love.

提交回复
热议问题