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'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.