I'm trying to load a word document from an url like so
try
{
// Get the web response
HttpWebResponse MyResponse = (HttpWebResponse)MyRequest.GetResponse();
// Make sure the response is valid
if (HttpStatusCode.OK == MyResponse.StatusCode)
{
// Open the response stream
using (Stream MyResponseStream = MyResponse.GetResponseStream())
{
wordTemplateDocument = new Document(MyResponseStream);
}
}
}
catch (Exception err)
{
throw new Exception("Error reading file from URL: " + err.Message, err);
}
But I get an error about the stream not being seekable. I there any way to load a file from url without intermediate files?. I tried all kinds of buffers and such but they all result in crc errors or messages like zip file(docx) to short