Binary Data in JSON String. Something better than Base64

后端 未结 15 1276
一向
一向 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:57

    My solution now, XHR2 is using ArrayBuffer. The ArrayBuffer as binary sequence contains multipart-content, video, audio, graphic, text and so on with multiple content-types. All in One Response.

    In modern browser, having DataView, StringView and Blob for different Components. See also: http://rolfrost.de/video.html for more details.

提交回复
热议问题