I need to retrieve a binary asset (for use in a 2d canvas context) on the client. With a raw XMLHttpRequest, I set the
responseType to something binary (in my case
blob and others are popular too). When the response comes back,
xhr.response is an ArrayBuffer, and I’m good to go. However, in the HTTP package,
httpcall_client.js always sets
response.content = xhr.responseText (around line 136), which won’t work for binary data. My alternative is to use a raw XMLHttpRequest, or define a jQuery transport, neither of which seems particularly Meteoric.
MDG: Is not supporting responseType a bug or a feature request? If the latter, is it something you’d want a PR for?