commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: commons.net FTP upload corrupts video-files
Date Thu, 17 Jun 2004 20:09:42 GMT

In message <6.0.1.1.0.20040616155143.01cd4d20@mailhost.mip.sdu.dk>, Morten Ande
rsen writes:
>I solved the problem using setFileType(...) instead of setTransferType(...).
>
>I think its a bug.

It's not a bug.  setFileType and setTransferMode do two different things
and setFileType(FTP.BINARY_FILE_TYPE) is what you needed to do.  If you
think the documentation is unclear, please submit a documentation patch
that would make it less likely for people to confuse the two.  This is
the sort of thing a user's guide would make clear through examples.
Maybe one can be started on the Wiki.

daniel



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


Mime
View raw message