Refrencing the following post: Microsoft Graph API - Office 365 Access SharePoint Nested Folder Items
I'm able to get a list of Images via the Graph API. I have an MVC Azure App where I'm making these Graph API calls.
However when I try to access the Image via the webUrl
property, I get access denied.
I've been able to get around this by using the @microsoft.graph.downloadUrl
property which I can access, download it via HttpClient
convert to Byte Array and transform into a Thumbnail.
However ideally I would just be able to use my MVC site to slice and dice the graph endpoint, then just pipe out webUrl
so I don't have to handle resizing or storing the image byte data.
First, why is webUrl
return Access Denied?
Second, what would the best approach to just pipe the Image URL through my MVC App? I don't want to be responsible for housing/transforming the image. The data needs to be accessed publicly.