SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

SharpZipLib unzip with url

Last post 03-30-2017 6:30 PM by kcbrown74. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-30-2017 6:30 PM

    SharpZipLib unzip with url

    We are unzipping a .zip file using Server.MapFile(SomeZipFile), pulling out a .pdf and displying it in the webpage on our main website. 

    byte [ pdfBytes;
    if (r[1].ToString() != "")
      ZipFile f = new ZipFile(Server.MapPath("/PDMA/");
      ZipEntry ze = f.GetEntry(somepdf.pdf);
      BinaryReader br = new BinaryReader(f.GetInputStream(ze));
      pdfBytes = br.ReadBytes(256000);

    The above code works on our webserver...

    Now,  I'm creating a second wesite and I have to grab a .zip file from our sebsite and do the same thing, HOWEVER, i have to use

    open that file, find the PDF and open it.  This second website will be on a different server... Any help would be fantactic.

    Thanks in advance,

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this ( email address.