Ulf Dittmer wrote:Well, what is it printing instead?
It also sounds like you might be running into a 32bit/64bit issue, so be sure to run the 64bit JVM.
Also, the code looks rather complicated. For example, what do you need the ByteArrayInputStream and BufferedInputStream for? You already have the data to be written in the buf[] - which you can write directly to the ZipOutputStream.
Hi Dittmer, that was my second approach to make the things work.
My original code is like this only:-
Now can you please suggest me if it is JVM 32/64 bit issue or something else? It is not printing the logger "@@@@@@@@@@@@@ Zipped Successfully @@@@@@@@@@@@@@@@", going to finally block, closing all the streams. In the end,
.zip is there but as I said, it is not complete zip (Max size of final zip is 1GB). I'm not able to unzip it. Looks like after certain writing to zip file, it is skipping, incomplete only. is there any size limit issue of creating a zip file? Thanks