Hi,
We are trying to upload large sized files (>500MB), from a legacy web service to SharePoint 2013 document library. We are using SaveBinaryDirect to store the incoming stream in to SP Document library.
In CSOM code, we are setting clientContext.RequestTimeout = -1 in code and from SharePoint end we have done all required configuration and we are able to upload large (>500MB) files from SharePoint UI.
We are using s2s authentication.
For small sized files ( <= 100MB), it works well, but for larger files (>500MB), SaveBinaryDirect times out and throws following exception.
System.Net.WebException was caught HResult=-2146233079 Message=The operation has timed out. Source=System StackTrace: at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl, Stream stream, String etag, Boolean overwriteIfExists, SaveBinaryCheckMode checkMode) at Microsoft.SharePoint.Client.File.SaveBinaryDirect(ClientContext context, String serverRelativeUrl, Stream stream, Boolean overwriteIfExists) at AddFile(Guid listId, String fullFilePath, Stream memoryStream, String fileSize) in d:\TestFile.cs:line 1121 InnerException:
Any pointer here will be appreciated.
Regards,