Thursday, 15 September 2011

phonegap plugins - download and decompress a zip file in windows phone 8 application -



phonegap plugins - download and decompress a zip file in windows phone 8 application -

i working on windows phone 8 application (phonegap) downloads zip file server location, want unzip file in application @ runtime utilize files in archive.

you can utilize 3rd party libraries in order decompress , extract zip files in wp7/wp8. mutual 1 #ziplib can download wp7 port @ http://slsharpziplib.codeplex.com/

my personal favourite library dotnetzip superset of #ziplib , much more stable imo. here's quick code sample:

class="lang-cs prettyprint-override"> private void myextract() { string ziptounpack = "c1p3sml.zip"; string unpackdirectory = "extracted files"; using (zipfile zip1 = zipfile.read(ziptounpack)) { // here, extract every entry, extract conditionally // based on entry name, size, date, checkbox status, etc. foreach (zipentry e in zip1) { e.extract(unpackdirectory, extractexistingfileaction.overwritesilently); } }

windows-phone-8 phonegap-plugins decompression

No comments:

Post a Comment