samedi 9 avril 2016

How to create a zip file in asp.net 5 [duplicate]

This question already has an answer here:

I am working on a website using asp.net 5 mvc and i want to create a zip file and return it as a single file so that user can download multiple file simultaneously. I try to find this on internet and get this code:

using (var zip = new ZipFile())
{
 zip.AddEntry("filename",content);
 }

But this code is not working in my project,, because ZipFile() class is static and there is not method like AddEntry() in it.




Aucun commentaire:

Enregistrer un commentaire