In my angular application I'm integrating the google authentication where I need to display a QR code that is generated on server side.
How using angular $http.get
I can receive the binary data of the image and assign it to an existing <img />
object using ng-src
or something else?
What format shall be chosen to send data from server? raw binary .png
data or maybe base64
?
Any ideas are appreciated?
P.S. I cannot generate and store the image on server and just send the link.