I'm using Ionic.Zip library to zip all files into a folder, so I do:
using (ZipFile zip = new ZipFile())
{
     foreach(var i in consultaPDF)
     {
         var fileRoute = carpeta + i.vRutaArchivo;
         zip.AddFile(fileRoute, "Document");
     }
     zip.Save(Response.OutputStream);
}
That I want to do is just download zip file. I don't want to save it. How can I just download it? Regards
I change it to:
  using (ZipFile zip = new ZipFile())
            {
                    foreach(var i in consultaPDF)
                    {
                        var fileRoute = carpeta + i.vRutaArchivo;
                        zip.AddFile(fileRoute);
                    }
                    MemoryStream output = new MemoryStream();
                    zip.Save(output);
                    return File(output, "application/zip", "sample.zip");
            }
Zip is downloaded correctly but when I try to open it:
the file has an unknown format or is damaged
 
    