James Sabre wrote:Make sure you have sent the file using ftp 'binary' mode.
James Sabre wrote:In your position I would still be concerned that I had corrupted the file during the transfer and would generate a message digest (MD5, SHA1, SHA2 etc) on both machines. Only if the digests are exactly the same can you be pretty sure that you have not corrupted the file.
Mehmet Gunacti wrote:
I think, pkunzip on the mainframe doesn't understand some 'zip-versions', WinRar does though.
Joe Ess wrote:Does the mainframe have the JAR executable? That should conform to the same spec as the JDK/JRE on the machine.
by malcolmmc : I've had problems with certain versions of zip utility in the past. The problem is down to the way that the ZipOutputStream writes zip files in a forward-only direction, and doesn't know the size of the entries until they have been written. The ZIP specification make allowance for this kind of thing by allowing the size, compressed size and CRC for an entry to be deferred from the entry's header to a special footer item which follows the entry's data.
However there have been some ZIP utilities that don't implement this feature of the ZIP specification. I wound up writing my own zip writer which required a file as an output, so it could skip back and write the necessary info into the header. Don't have it to hand, I'm afraid, though you might still find it somewhere on the archives of the old Sun site.
Graham Weatherup wrote:I am very interested to know if you found the code malcolmmc mentioned that writes the header to the beginning of the file or could point me to where it would be on the old sun site he speaks of. Or can anyone else tell me how this is done.