asp.net mvc 3 - How to use DotNetZip Library -


i unziped file donwloaded. how , library access in asp.net mvc 3 app able unzip file contains multiple files?

my controller code:

 public actionresult upload(scormuploadviewmodel model) {   if (modelstate.isvalid)   {     if (model.scormpackagefile != null)     {       string zipcurfile = model.scormpackagefile.filename;       string fullpath = path.getdirectoryname(zipcurfile);       string directoryname = path.getfilenamewithoutextension(zipcurfile);       directory.createdirectory(path.combine(fullpath, directoryname));        using (filestream zipfile = new filestream(zipcurfile, filemode.open))       {         using (gzipstream zipstream = new gzipstream(zipfile, compressionmode.decompress))         {           streamreader reader = new streamreader(zipstream);            //next unzip file? how library need?         }       } 

thanks


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -