CSOM SaveBinaryDirect method return 404 exception on Large files

Contributor

Hi,

 

I am using CSOM to upload file in SharePoint library. When the file size is medium up to 350mb, the file is successfully uploaded in library.  When i upload 1GB file i am getting below exception.

 

Exception: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl, Stream stream, String etag, Boolean overwriteIfExists, SaveBinaryCheckMode checkMode)

CSOM Method: SaveBinaryDirect 
File Type: .db

0 Replies