With the query below, we can get contact's profile pictures using Microsoft Graph:
https://graph.microsoft.com/v1.0/users/{user-name}/contacts/{id}/photo/$value
Using the above query is taking a bit longer time to retrieve a large number of contacts. Is there any way to retrieve the contacts along with the profile picture in batches?
With the help the of below batch request, the contacts are fetched successfully in batches of 20(max), but for the profile photo it returns body
. I am not able to process this body
content. Is there any way out to process this body
into image
format which can be processed.
Any C# API, if there, will be much helpful.
Below is the response. The body
content is not of much help. How to process it?