aurelia / http-client

A simple, restful, message-based wrapper around XMLHttpRequest.
MIT License
62 stars 59 forks source link

Get a blob #93

Closed dpinart closed 9 years ago

dpinart commented 9 years ago

Hi,

I need to consume a REST service that returns binary data. I need, using phonegap, to get this data and write it in a file. Is there any way I can get a blob as as the content of the HttpClient response?

bryanrsmith commented 9 years ago

This should just work. The content property of the response will hold the binary data, which you can construct to a Blob or Uint8Array or whatever you need.