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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Elavarasan RRank #296 · 8.5K reputationPosted Aug 30, 2019, 3:18 AM EDT
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 HawaldarRank #110 · 20.2K reputationPosted Aug 29, 2019, 11:22 PM EDT
Ravishankar NRank #241 · 10.2K reputationPosted Sep 3, 2019, 3:32 AM EDT
Convert the image to Base64 on your server:
In your template include it like this: