Share via


File.SaveBinaryDirect method

Uploads the specified file to a SharePoint site without requiring an ExecuteQuery() method call.

Overload list

  Name Description
Public methodStatic member SaveBinaryDirect(ClientContext, String, Stream, Boolean) Uploads the specified file to a SharePoint site without requiring an ExecuteQuery() method call.
Public methodStatic member SaveBinaryDirect(ClientContext, String, Stream, String) Uploads the specified file to a SharePoint site with the specified Etag without requiring an ExecuteQuery() method call.

Top

Remarks

The SaveBinary operation allows file sizes of about 3.3 MB. Consider using SaveBinaryDirect(ClientContext, String, Stream, Boolean) or SaveBinaryDirect(ClientContext, String, Stream, String) if you need a more efficient alternative.

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace