Hi
How to convert web api byte[] array to html image in angular ?
thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravishankar NPosted Sep 3, 2019, 7:32 AM
Convert the image to Base64 on your server:
In your template include it like this:
Elavarasan RPosted Aug 30, 2019, 7:18 AM
check it out below links..
References:
https://javaee.ch/2017/02/11/send-and-image-from-the-java-backend-to-angular-using-rest-services/
https://www.aspsnippets.com/Articles/Display-Byte-Array-as-Image-using-ng-src-in-AngularJS.aspx
http://www.macaalay.com/2014/09/26/rendering-images-from-byte-arrays-and-converting-images-to-byte-arrays-using-angularjs/
Video Reference:
https://www.youtube.com/watch?v=Ftq_QpnnGus
Rajanikant HawaldarPosted Aug 30, 2019, 3:22 AM