I am getting image as binary on rest call using the code below.
vm.profilepicture = function(){
profileService.bindimage('GET', 1).then(function(response){
vm.image = response.data;
});
}
And I have the tag:html for displaying the image as follows:
<div>
<img ng-src="data:image/JPEG;base64,{{vm.image}}">
</div>
But unfortunately its not displaying (only showing broken image). In developer console I can see the entire image what I stored in the db

On debugging i can see like

Can anyone help me how to display it properly in HTML?
Thanks ebk.