Recent Posts

Pages: [1] 2 3 ... 10
1
After testing it on an external server (no firewall which could interfere), the problem somehow has to be with the apache commons FTPClient.

ZipInputStream does work though with some files, so at least I can work around this
2
Hello,

I was using the zip4j (v1.3.2) fine on windows 10 (running in an tomcat 8.5.5)
and the ZipFile::extractFile worked fine.

Now after finishing everything, I deployed my webapp to an debian (6.0.10) running tomcat 8.0.9 but now I get
Code: [Select]
net.lingala.zip4j.exception.ZipException: Expected central directory entry not found (#1)
        at net.lingala.zip4j.core.HeaderReader.readCentralDirectory(HeaderReader.java:224) ~[HeaderReader.class:?]
        at net.lingala.zip4j.core.HeaderReader.readAllHeaders(HeaderReader.java:94) ~[HeaderReader.class:?]
        at net.lingala.zip4j.core.ZipFile.readZipInfo(ZipFile.java:425) ~[ZipFile.class:?]
        at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:622) ~[ZipFile.class:?]
        at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:587) ~[ZipFile.class:?]
        at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:566) ~[ZipFile.class:?]

using the same files I did so many tests ago (they are downloaded from a public FTP server)


Do you know if there are any pitfalls? I will test it on another server with different OS and tomcat version, but if someone knows what could be responsible for the exception I would be glad.

Thank you

3
Support and Bug Reports / Re: Rejoin split zips
« Last post by RussellS on April 27, 2017, 12:21:14 PM »
Hi,

Can you tell me how to use mergeSplitFiles() to merge several split zip files back to the original zip file? I have posted a new topic in the following link,

http://www.lingala.net/zip4j/forum/index.php?topic=436.0

Thanks!

Is there an easy way to merge split files these days? It's taking me ages to do it manually.
4
I am trying to zip few files one of which has filename in japanese language. I tried setting the charset but still the zip file contains garbled characters.
And this is happening on windows server 2012 R2

charset="Windows-31J";
objZipFile.setFileNameCharset(charset);

Am I missing anything?
 
5
Feature Requests / Read Zip file inside another Zip file
« Last post by Sadiinso on March 19, 2017, 06:42:49 PM »
Hi,
I need to read the content of some files, that are stored inside a Zip archive (there is no problem here), but, this zip archive is also stored in another zip archive. I can get the ZipInputStream of the second zip file, but, how to get the InputStream of the files inside without writing this ZipInputStream somewhere ?

Schemas :

(zip file 1) =[ (zip file 2) =[ (some files) ] ]

How does I get an inputStream from "some files" ?
6
Feature Requests / extract from InputStream
« Last post by bully on February 21, 2017, 06:39:04 PM »
I need to download zip from web service as byte[], extract it and then extracted file write to another one. I do not want to save zip to disk.
I expected something like this new ZipFile(InputStream)
7
Support and Bug Reports / Re: Rejoin split zips
« Last post by hxj172 on February 14, 2017, 12:16:37 AM »
Hi,

Can you tell me how to use mergeSplitFiles() to merge several split zip files back to the original zip file? I have posted a new topic in the following link,

http://www.lingala.net/zip4j/forum/index.php?topic=436.0

Thanks!
8
Hi all,

I have one big zip file and I have already split it into several small zip files like "ob", "ob.z01", "ob.z02", "ob.z03", "ob.z04". The function of "createZipFileFromFolder()" is really helpful! Thanks!

However, when I try to merge "ob", "ob.z01", "ob.z02", "ob.z03", "ob.z04" back to the original zip file, I failed. I cannot figure out the way of using mergeSplitFiles(). Actually, there is an old topic, which has the same problem with me, in the following link,

http://www.lingala.net/zip4j/forum/index.php?topic=45.0

It seems that mergeSplitFiles() should works fine. But I still don't know how to use it. How can I let mergeSplitFiles() knows that I want to merge  "ob", "ob.z01", "ob.z02", "ob.z03", "ob.z04"? or is there anyone knows how to merge the several zip files back to the original zip file? Thanks a lot!
9
Feature Requests / Re: in memory ZipFile object via Inputstream
« Last post by Kingseason on February 03, 2017, 08:57:43 AM »

It is information that is very useful to me. It is a very good thing that I have read it today.
10
Read all about it It is the body of knowledge that is useful to the reader, really.
Pages: [1] 2 3 ... 10