[ 
https://issues.apache.org/jira/browse/NET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487624
 ] 

Rich Stupek commented on NET-115:
---------------------------------

I think the bug is that the stream is not flushed before being closed.  You've 
called Util.copyStream telling it not to flush, then fail to flush the stream 
once the copy is completed.  This applies also to the __storeFile(..) function 
as well which causes file that are uploaded to be incomplete.

> [net] FTP - WinZip file downloads are corrupted
> -----------------------------------------------
>
>                 Key: NET-115
>                 URL: https://issues.apache.org/jira/browse/NET-115
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Kevin Wilson
>
> function retrieveFile() corrupts winzipped files. error returned on open is: 
> error [<file>]: start of central directory not found; Zip file corrupt. 
> Possible
> cause: file transfer error.
> this occurs for both .zip and tar.gz files I have tested.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to