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

Deleted
Not applicable

hi,

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