Stream stream = file.InputStream;
file.SaveAs(physicalPath);
BinaryReader b = new BinaryReader(file.InputStream);
byte[] fileData = b.ReadBytes(file.ContentLength);
var wc = new WebClient();
wc.Headers.Add("Authorization", "Bearer "+ AccessToken);
byte[] response = wc.UploadData(url, "PUT", fileData);
string s = wc.Encoding.GetString(response);
var obj = JObject.Parse(s);
Above code is not working with Large Files
In web.config i have updated
still not working

Nikunj SatasiyaRank #302 · 8.3K reputationPosted Sep 22, 2017, 11:02 PM EDT
JohnRank #2,322 · 608 reputationPosted Sep 25, 2017, 10:00 PM EDT
Ankit SharmaRank #141 · 16.1K reputationPosted Sep 26, 2017, 12:49 AM EDT