I have sharepoint documents library and I have wcf service from where i should download new version of document file on button click.

So i got next method:

   public void UpdateFile(SPListItem item, Stream newFileStream)
       // How to update file?

And i want to change existing sp item file to new one from stream.

How to do this?

1 Answer 1


as per my knowledge you have to upload a template document with content type and metadata mapping.

so u can update the document. because document is generated based on your template.

below couple of links which helps you..





  • Those examples of adding new files. I want to leave existing SPListItem and just change or update file.
    – Ievgen
    Commented Jan 16, 2013 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.