Angularjs Showing Image Blob
I have a method to call APIs and get responses. One api returning an image. Content-Type:application/octet-stream If I set responseType: 'blob', it is working fine. $http({
Solution 1:
try to put the src like this :
<img class="img-responsive empImg" id="empImage" data-ng-src="'data:image/png;base64,'+{{ImageSrc}}" />
and instead of png put the type of the image
Solution 2:
image/png;base64
Set that as your response type.
Post a Comment for "Angularjs Showing Image Blob"