How to download a file into byte array in c# from oneDrive

Not applicable


we have file handler for oneDrive , we are getting graph api url using 

var url = Request.Form["items"];

in End Point application. We are using following code to find the file


var request = graphClient.Shares[url];
var foundFile = await request.Request().GetAsync();

But i'm getting json object with file information. i want to get this file into byte array, how can i do it?

0 Replies