I have web service that point to sharepoint 2013 Office 365. I use the client object model. I am trying to update the xml file which stores 4 attachments in it. When I do thi
use .ContentStream instead of .Content
//newFile.Content = System.IO.File.ReadAllBytes(file); newFile.ContentStream = new MemoryStream(System.IO.File.ReadAllBytes(file));