Skip to content

Instantly share code, notes, and snippets.

@chakkaradeep
Created August 12, 2014 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chakkaradeep/8f213eeadfaeae5cd285 to your computer and use it in GitHub Desktop.
Save chakkaradeep/8f213eeadfaeae5cd285 to your computer and use it in GitHub Desktop.
Office 365 API My Files - Update File Contents
public static async Task UpdateFileContent(string strFileId, Stream stremFileContent)
{
var file = (IFileFetcher)(await _spFilesClient.Files.GetById(strFileId).ToFile().ExecuteAsync());
await file.UploadAsync(stremFileContent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment