Using Graph Explorer I get the photo of a group with request https://graph.microsoft.com/v1.0/groups/12345678/photo/$value. Response preview shows the photo correctly.
When trying to get the photo of the same group using batch https://graph.microsoft.com/v1.0/$batch
{
"requests": [
{
"id":"12345678",
"method":"GET",
"url":"/groups/12345678/photo/$value"
}
]
}
I get an error message "We had an issue sending this request to the Graph API. For assistance, connect with us on StackOverflow..."
This does not occur with all the groups. Is there something wrong with batch?
/groups/1234567/photo
)? – Dmitry Pimenov/groups/1234567/photo
. It seems that the error occurs with group photos where"@odata.mediaContentType": "image/pjpeg"
. When the content type is image/jpeg also /$value works correctly. – mimate