AngularJS - Show byte array content as image
Use ng-src
in the following format
<img ng-src="data:image/JPEG;base64,{{image}}">
Don't forget to add a sanitization filter for data
to not be marked as unsafe
by angular:
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|file|ftp|blob):|data:image\//);
If you can get your server to return the image in a base64 encoded string, you could use a data url as the src attribute.