You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
IIRC, Chrome sets xhr.response also in the responseType='', responseType='text' cases.
But that could very well be in implementation divergence from the spec.
vojtajina
added a commit
to vojtajina/angular.js
that referenced
this issue
Aug 4, 2012
I'm trying to get binary data (a simple jpeg image) with responseType: 'blob' (also tried 'arraybuffer'), but the data property of the response object is always a string instead of a Blob object. Am I doing something wrong? This issue is closed, so it should work, right?
Ok I found out it didn't work because I was using ngMockE2E. However, I specified to passThrough() the request - it seems like $httpBackend swallows the responseType parameter.
See #11524
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
http://www.html5rocks.com/en/tutorials/file/xhr2/
Requesting the resource as a "blob" or "arraybuffer" is something new to xhr and is quite useful for working with binary data
The text was updated successfully, but these errors were encountered: