aspose file tools*
The moose likes Beginning Java and the fly likes issue with the zip file when downloaded from linux to windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "issue with the zip file when downloaded from linux to windows" Watch "issue with the zip file when downloaded from linux to windows" New topic
Author

issue with the zip file when downloaded from linux to windows

asma khanammd
Greenhorn

Joined: Jun 01, 2011
Posts: 3
Hi All,
I have a problem with the file downloaded from linux to windows which is zipped using tar cmd. it is downloaded perfectly. when i try to unzip it in windows,
it shows an alert saying some bytes are missing. how to resolve this issue. thanks in advance. i am using org.apache.commons.net.ftp.FTPClient.

I am using this method objClient.retrieveFile(source + strNewFileName, fos); for writing it to output stream.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Welcome to the Ranch!

Are you sure it's downloaded perfectly? Is the number of bytes (not kilobytes or megabytes) exactly the same on both machines? Did you use binary mode for transferring?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
asma khanammd
Greenhorn

Joined: Jun 01, 2011
Posts: 3

I am using the binary format only by using setFileType(FTP.BINARY_FILE_TYPE) method. the files from linux are password protected. i forgot to mention this.
thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: issue with the zip file when downloaded from linux to windows