Protecting Word document located in an http location

I am trying to protect a word document using ASPOSE.Words.
I only have the URL of my document, i don’t have its physical path.
i used the following code in order to get my document in a memory stream prior to open it:

System.IO.MemoryStream objImage;
System.Net.WebClient objwebClient;
objwebClient = new System.Net.WebClient();
objImage = new System.IO.MemoryStream(objwebClient.DownloadData(fileURL));

the Problem is that i don’t know how to save the document back to its original location.
any help will be appreciated

Thanks for your interest in Aspose.Words. If you can write anything to “original location” then you can save document to this location. You can try saving document to stream and write stream to “original location”.
Best regards.