Ftp :bin and ascii

Hi ,

I am trying to ftp a file once using ascii mode and once binary mode

The ftp prompt shows different bytes transferred for each of them but at the destination server,each one of these files gets created with the same byte size and are identical.Can anyone shed any light on this

Regards,

Saurabh

ASCII is a 7bit format, the last bit is always 0, and so only 7 bits are transferred in ASCII mode the 0 being appended to create the full byte.

In binary mode this is not the case and all 8 bit are transferred. If the file bing transferred was ASCII to begin with you won't see a problem, but if you transfer a binary as ascii it will become corrupted.

Hope this explains both the different data transfers sizes and identical file sizes.