How and where decompresses "Archiver"?

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I encounter a problem, I download several zip files by ftp and unzip when some do it in the specified directory and others in a subdirectory with the file name, example:

I have files YYYY.zip and XXXX.zip
B4X:
Dim zzz As Archiver
zzz.AsyncUnZip( "/aaa/", "XXXX.zip", "/aaa/", "zzz")
In the "/aaa/" are the files that were inside "XXXX.zip"

Now do the same with "YYYY.zip"
B4X:
Dim zzz As Archiver
zzz.AsyncUnZip( "/aaa/", "YYYY.zip", "/aaa/", "zzz")
Strangely, in the "/aaa/" are not the files that were inside "YYYY.zip", but are in the directory: "/aaa/YYYY/" :(

How I can do to always decompress in "/aaa/"?

Thanks and regards.
 

vecino

Well-Known Member
Licensed User
Longtime User
Hello, thank you very much for answering.

There are simple text files that have been compressed into zip files.
No directories or anything within those zip files.

For testing I'm doing, I've noticed that there is a problem "random" in extracting the files from the zip file.
Some files are corrupt when extracted.
They are all text files and can be easily checked that "Archiver" or "Android" does not work well in that area, or is there something I do not know.

With "Archiver" and "unzip" does not work, but with "asyncunzip" works sometimes.

I'm desperate, with very small files works normally, but with files that measure several hundred Kb are constant problems.

I just want to download a zip file via ftp (which also fails in this sometimes), unzip it and import it. But I find ghosts problems in each of the steps.

Thank you very much for the help you can give me.
Greetings.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Thanks, I'll try the latest version.
I will upload a test file if still not working.
Regards
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hey, now this is the error.

After downloading via FTP, and fails if I extract the zip file, then I will extract file by file (to test if it works), for it ListZipEntries use, but the error that comes out is this:

java.io.IOException: java.util.zip.ZipException: Central Directory Entry not found

Thanks and regards.
 
Upvote 0

Informatix

Expert
Licensed User
Longtime User
Hey, now this is the error.

After downloading via FTP, and fails if I extract the zip file, then I will extract file by file (to test if it works), for it ListZipEntries use, but the error that comes out is this:

java.io.IOException: java.util.zip.ZipException: Central Directory Entry not found

Thanks and regards.

If you search this error message with Google, you'll find that's due to a corruption during the download or a bug in the download code.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hi, thanks for the reply, I find it very difficult to find information on the subject because I do not speak English, I use google translator to write these posts.
Then, as I mention, the problem really comes from the ftp library, which does not work properly, sometimes good and other bad download, but with large files often fails.
Now I do not know what to do :(
 
Upvote 0

Informatix

Expert
Licensed User
Longtime User
Hi, thanks for the reply, I find it very difficult to find information on the subject because I do not speak English, I use google translator to write these posts.
Then, as I mention, the problem really comes from the ftp library, which does not work properly, sometimes good and other bad download, but with large files often fails.
Now I do not know what to do :(

Create a new thread in the forum Bugs & Wishlist to say there's a problem with the FTP library and put a link to this thread.
 
Upvote 0
Top