- Maybe later
- Under review
- Will not implement
in Developing jQuery Core • 6 years ago
For a WebGL application, I need to be able to parse a binary encoded file. The basic Ajax request response is a Unicode string with data loss (multiple byte combinations can produce the same non-valid unicode character). An option is available to the XMLHttpRequest component to allow this binary transfer. We just need to add this line:
You can read more about this technique at the Mozilla Developer Center: https://developer.mozilla.org/En/Using_XMLHttpRequest#Receiving_binary_data
It doesn't work on all browsers and I couldn't find any workaround for unsupported browsers.