Guest User

How to upload a file as a new version to a document library using the object model

a guest
Feb 22nd, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. //byte array holding the contents of the file
  2. byte[] contents = File.ReadAllBytes(path);
  3. file.CheckOut();
  4. file.SaveBinary(contents);
  5. file.CheckIn("New version");
Add Comment
Please, Sign In to add comment