[
  {
    "Id": "1234658",
    "ThreadId": "542411",
    "Html": "I wrote the following method.<br />\n<pre><code> public static ZipFile OpenFile(Uri zipFileToRead, string password = null)\n        {\n            var sw = Stopwatch.StartNew();\n\n            ZipFile zip = null;\n            if (zipFileToRead.Scheme == Uri.UriSchemeHttp)\n            {\n\n                var myReq = (HttpWebRequest)WebRequest.Create(zipFileToRead);\n                WebResponse myResp = myReq.GetResponse();\n\n                Stream stream = myResp.GetResponseStream();\n                zip = ZipFile.Read(stream);\n\n            }\n            else\n            {\n                zip = ZipFile.Read(zipFileToRead.OriginalString);\n              \n            }\n\n            if (password != null)\n            {\n                zip.Password = password;\n            }\n            Trace.WriteLine(&quot;Opening the Zip File took: &quot; + sw.ElapsedMilliseconds + &quot; ms&quot;);\n            return zip;\n\n\n        }</code></pre>\n\nWhen my zip file is on a Webserver I get an error at the line &quot;zip = ZipFile.Read(stream);&quot; .\r<br />\n<br />\n&quot;This stream does not support seek operations&quot;. \r<br />\n<br />\nIs it possible to open a Zip file on a Webserver for read operations? Thank you for help in advance!<br />\n",
    "PostedDate": "2014-04-16T04:46:55.617-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]