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
Post a Comment