'How to display when response is Content-Type: image/jpeg
I am using following graph api to get the user profile image. Its successfully returning the image in response tab of network
https://graph.microsoft.com/v1.0/users/{UPN}/photo/$value

Response Header - Content-Type: image/jpeg
But I am unable to display content of this response in my html page. I tried by passing this image to <img/> tag
src="RESPONSE"
src="data:image/jpeg;base64,RESPONSE"
Solution 1:[1]
First of all ,please try this in graph explorer and check if it contains a valid image , if you got image on graph explorer kindly share the code with us, there might be issue in the code not in the API.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | vicky kumar |
