I agree with Bell's answer that you should use the .then function and not the .success function on the promise returned from $http.get . However, I would suggest that you still have a problem with your ng-src link, since you are not supplying it with a URL, but instead referring to your byte array.
To bind your ng-src link to an array of bytes stored in memory on the client, your binding should have the following form:
<img ng-src="data:image/JPEG;base64,{{image}}">
Edit
Since I never mentioned this explicitly, the ng-src binding above assumes your image data is in base64 format. HarrisonA provided the method below to convert the array if it is not already in base64 format.
source share