I am attempting to upload a ZIP file via FTP from within my Java program, and every time I do so, I get the following error when trying to extract the contents in WinZip…
—
Extracting to “C:\Documents and Settings\briang\Local Settings\Temp\”
Use Path: no Overlay Files: yes
warning [C:\Documents and Settings\briang\Desktop\BAD 2002317135625.zim]: extra 8 bytes at beginning or within Zip file (attempting to process anyway)
Error in file #1: bad Zip file offset (Error local header signature not found): 0
(attempting to re-compensate)
Extracting 031802115226.ent
Error: invalid compressed data to inflate
—
I can open the Zip file on my local drive, but as soon as I FTP it, it gets corrupted.
I’ve tried several different FTP classes including JScape’s iNet Factory (www.jscape.com) and they all end up giving me the same error.
If I manually FTP the file from a DOS prompt, it does not get corrupted.
Has anyone else run into these problems with FTP uploads?