How to fetch Images returned in the html content of an assignment

Shaun Miah 0 Reputation points
2024-04-09T09:02:15.1+00:00

Hi there,

In our product, we retrieve assignments from the Classroom GraphAPI: https://learn.microsoft.com/en-us/graph/api/educationassignment-get?view=graph-rest-1.0&tabs=http.

The assignments include instructions which are in HTML code. This is returned to us as <img height="670" width="588" data-d="XXXXX" data-i="XXXXX" data-e="png"> (data obfuscated for security reasons).

Due to the images not having a source, we are unable to fetch them and render them on the page.

Is there a GraphAPI endpoint that allows us to fetch the images embedded in the HTML content of an assignment?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,014 questions
{count} votes

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.