On Mon, Feb 14, 2000 at 10:12:44PM -0600, Bryn Joynes wrote:

> When downloading from a FTP site, when do you download in ASCII and when

> do you download in Binary?

> I was going to download a .tgz file and was not sure which way.

        Binary.  Always binary.

        ASCII mode attempts to do end of line conversions between the two

ends.  In theory, if the server is on a Linux box and a Windows client

ftps an ascii text file from the server, the file on the Linux box has

lines that end "\n" while the file that got downloaded has lines that

end "\r\r".  If that same user then uploads that same file to a server

running on a Mac, the resulting file on THAT server has lines that end "\r";

        If you do that to a binary file, the best that can describe the

result is "random acts of terrorism".

        If you always use binary mode, you always get the same file at

each end of the transfer.  It they happen to be text files, then you

can decide if you want to do end of line conversions.  Don't depend on

ASCII mode for that.

        A .tgz file is most definitely a binary file even if it only contains

text.  ASCII mode would only corrupt it.  On use binary mode.

> Thanks in advance....

> Bryn Joynes

> N4VM EM54LO

> --

> To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.


-- 
 Michael H. Warfield    |  (770) 985-6132   |  ">mhw@WittsEnd.com
  (The Mad Wizard)      |  (770) 331-2437   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.