Forums Register Login

FTP for ZIP files

+Pie Number of slices to send: Send
Help!
I'm trying to create a system that uses FTP to download a ZIP file from a server then "unzips" this and imports the data files that it consists of into a database. The FTP client works fine and I'm using binary mode but the ZIP file won't decompress.
Should I be using a ZipInputStream() instead of a BufferedInputStream() to access the InputStream available from my openDataConnection("RETR filename")? The latter works OK for both ascii and binary methods for other file formats and the ZIP file decompresses just fine when I use WS_FTP do download it.
I will open the floodgates of his own worst nightmare! All in a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1102 times.
Similar Threads
FTP Put a zip file that contains text files in Linux
Resume download using ftp url connection
Problem with InputStream using org.apache.commons.net
Multipart problem with zip files !
problem retrieving a zip file from FTP server using org.apache.commons.net.ftp.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:17:27.