MikeH Well-Known Member Licensed User Longtime User Jan 21, 2015 #1 I`m having difficulty getting a file to unzip. I can see the zip file in the folder using Log(File.ListFiles(File.DirTemp)) but my results are: B4X: Zip.Unzip(File.DirTemp, "POI.zip", File.DirTemp, "") Error unzipping file: Error Domain=SSZipArchiveErrorDomain Code=-1 "failed to open zip file" UserInfo=0x19e8e600 {NSLocalizedDescription=failed to open zip file} B4X: Zip.AsyncUnzip(File.DirTemp, "POI.zip", File.DirTemp, "", "UnZip") Unzip_unzipdone is triggered but success is always false. I`ve also tried using DirDocuments but I get the same results. Hope you can help. Thank you, Mike.
I`m having difficulty getting a file to unzip. I can see the zip file in the folder using Log(File.ListFiles(File.DirTemp)) but my results are: B4X: Zip.Unzip(File.DirTemp, "POI.zip", File.DirTemp, "") Error unzipping file: Error Domain=SSZipArchiveErrorDomain Code=-1 "failed to open zip file" UserInfo=0x19e8e600 {NSLocalizedDescription=failed to open zip file} B4X: Zip.AsyncUnzip(File.DirTemp, "POI.zip", File.DirTemp, "", "UnZip") Unzip_unzipdone is triggered but success is always false. I`ve also tried using DirDocuments but I get the same results. Hope you can help. Thank you, Mike.
MikeH Well-Known Member Licensed User Longtime User Jan 21, 2015 #2 It appears that my zip file was broken. Hence "failed to open zip file". I`ll know for sure soon and will confirm. Thanks again.
It appears that my zip file was broken. Hence "failed to open zip file". I`ll know for sure soon and will confirm. Thanks again.
chjk Member Licensed User Longtime User Nov 21, 2015 #3 I also encountered the same problem, how do you solve it ? Thanks
moore_it Well-Known Member Licensed User Longtime User Feb 5, 2016 #4 The zip work only with folders, you need to copy a file/files in a folder and zip it. For me work fine.
The zip work only with folders, you need to copy a file/files in a folder and zip it. For me work fine.