Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Unable to extract zip file. (TermiT Zipfile)

The app contacts the webservice to get a json object which has the following properties: Value,Message,StoreFile.

The StoreFile property contains compressed base 64 encoded string. Here are the steps I'm following to extract the file but it is not working.

var f= Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'test.zip');

                                f.write(Titanium.Utils.base64decode(Obj.StoreFile.toString()));
                                Ti.ZipFile.extract(Titanium.Filesystem.resourcesDirectory + '/test.zip',Titanium.Filesystem.resourcesDirectory);

Please help.

— asked August 12th 2010 by Sravan Vinjamuri
  • module
  • termit
  • zip
  • zipfile
2 Comments
  • I am actually having the same issue… 3 years later :( Any help?

    — commented February 22nd 2013 by Paulo Dichone
  • Me too having issues while extracting. No error or log messages, but could not find any files extracted to destination folder.

    Any other alternative to this module?

    — commented May 10th 2013 by Ramesh Jayal

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.