I am using the following code to download documents from SharePointand surface them to the user.
ClientContext clientContext = new ClientContext(ServerUrl);
clientContext.Credentials = cred;
FileInformation fileInformation =
Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientContext, reference);
return fileInformation.Stream;
My next task is to upload a document to SharePoint, but in the process, set some column values. These values will indicate a filetype, one of several categories that would be added and made available within SharePoint. How does one go about setting this column data and uploading the document?
Responses which help me to ask the right follow up questions will also be extremely helpful-- as I understand that at this point my question may not have enough detail.