Generating Image from binary encoded string in angularjs

299 views Asked by At

I trying to get an image from an API which is returning like below

Here is the response im getting:
reponse

I don't know which format it is but i want to display it as an image.I thought i was some binary encoded string so i tried converting it to Base64 by using

window.btoa(data)

 <img ng-src="{{data:image/png;base64, <base64string>}}"></img>

But i'm not able to display image.

I found some answers by searching in google, but it was not clear. Can any one help me in this please.

0

There are 0 answers