I was reading in the MDN documentation that it is possible to get a response Blob
through ajax, according to the code below:
var oReq = new XMLHttpRequest();
oReq.open("GET", "/myfile.png", true);
oReq.responseType = "blob";
oReq.onload = function(oEvent) {
var blob = oReq.response;
// ...
};
oReq.send()
I liked the idea and would like to know if it is possible to get a response Blob
also through $http.get
of the Angular.
I know that by default, AngularJs is configured to send and receive application/json
, but would like to know if it has any place to set up receipt of Blob
.