You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/02/27 10:29:57 UTC

DO NOT REPLY [Bug 38067] - [net] FTP - WinZip file downloads are corrupted

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38067>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38067





------- Additional Comments From tkdkid@pchome.com.tw  2006-02-27 10:29 -------
(In reply to comment #7)
> Here ya go ... isn't much to it. If ya like I can send the entire class if 
need be.
> 
*******************************************************************************
**
>  public void fetchFile(String sServerFile, String sLocalFile){
>     FileOutputStream fout = null;
>     
>     try{
>       this.setFileTransferMode(this.BINARY_FILE_TYPE);
>       this.enterLocalPassiveMode();
>       fout = new FileOutputStream(sLocalFile);
>       boolean bSuccess = this.retrieveFile(sServerFile, fout);
>       if(FTPReply.isPositiveIntermediate(getReplyCode())){
>         this.completePendingCommand();
>       }
>       if(!FTPReply.isPositiveCompletion(getReplyCode())){
>         System.out.println("retrieveFile() failed: " + getReplyString());
>       }
>     }catch(Exception e){
>       System.out.println(e.getMessage());
>       try{if(fout != null){fout.close();}}
>       catch(Exception f){;}
>     }finally{
>       try{if(fout != null){fout.close();}}
>       catch(Exception g){;}
>     }
>   }



Actually , not only zip file open corrupted aftertrasnfering ,but also other 
type of .wav or movie files . there're no problem to process is text file I 
think .

Perhaps it's I/O occurs the main problem


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org