• Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP for ZIP files  RSS feed

 
ash coupland
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!