Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to decode the Rest API file's data from SharePoint ?
Step-1 ) I have integrated my application with SharePoint(online)
Step-2 ) Calling rest API to get file's content from SharePoint
Sample:-
string sharepointSiteUrl = Convert.ToString("https://abc sharepoint.com/sites/SharePointIntegrattion/_api/web/GetFolderByServerRelativeUrl('/sites/SharePointIntegrattion/Shared%20Documents/Email')/Files('Document.docx')/$value?binaryStringResponseBody=true");
So from there I am getting the response as shown in the image
I just want to get the data in their actual format (docx, pdf or etc.)