I saw the example in URI Format. After manipulating the document, how do I save it back to the original uri?
Thanks,
Joe
Please disregard. I got it to work this way:
. . .
saveToUrl(doc, url);
private void saveToUrl(Document doc, string url)
{
MemoryStream source = new MemoryStream();
doc.Save(source, SaveFormat.FormatDocument);
byte[] sourceBytes = source.GetBuffer();
WebClient client = new WebClient();
client.Credentials = System.Net.CredentialCache.DefaultCredentials;
Stream target = client.OpenWrite(url, “PUT”);
target.Write(sourceBytes, 0, sourceBytes.Length);
source.Close();
target.Close();
}