Unable to download images/stickers from Teams graph API call

Rochishna Aloor 0 Reputation points Microsoft Employee
2024-04-26T12:41:10.0566667+00:00

We are using teams graph to generate transcript for different kinds of chats. We are using the below for downloading images/sticker images however we get either distorted image/ if we replace <img> tag with <span> then it gives us just the alt text instead of the image shared. Please assist if there is any change


https://graph.microsoft.com/v1.0/chats/{Chat-id}/messages/{message-id}/hostedContents/{hostedcontent-id}/$value\
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,447 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,891 Reputation points Microsoft Vendor
    2024-05-27T18:54:44.91+00:00

    Hello @Rochishna Aloor,

    Thanks for reaching Microsoft.

    I attempted to replicate the issue but did not encounter any distorted images/stickers. The image downloaded from this Graph API response was accurate. Please retry the API and verify the results.

    If the issue still persists, I would recommend you to raise a support case with Microsoft Graph, a dedicated Support Engineer will be able to look into the issue and assist you better. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.