HPlogo HP ARPA File Transfer Protocol User's Guide > Chapter 4 Using FTP

Setting or Changing Transfer Types

MPE documents

Complete PDF
Table of Contents
Index
Glossary

E0300 Edition 6 ♥
E1098 Edition 5

FTP supports three transfer types, binary, ASCII, and BYTESTREAM. When you first enter FTP, the transfer type defaults to ASCII. For example, text files are type ASCII and are transferred as ASCII files.

To find out what the transfer type is for your current session, enter the TYPE command without parameters. For example, if ASCII is the current transfer type, the following displays:

  ftp> TYPE
  Using ASCII mode to transfer file (FTPINFO 25).

Binary


To change the file transfer type to binary, enter the command BINARY at the ftp> prompt as follows:

  ftp> BINARY
  200 Type set to l.

You can also use the TYPE transfertype command to change the file transfer type. To set the transfer type to binary, you can enter:

  ftp> TYPE BINARY
  200 Type set to l.

ASCII


To change the file transfer type to ASCII, enter the command ASCII at the ftp> prompt:

  ftp> ASCII
  200 Type set to A.

You can also use the TYPE [transfertype] command to change the file transfer type. To set the transfer type to ASCII, you can enter:

  ftp> TYPE ASCII
  200 Type set to A.

BYTESTREAM


To change the file transfer type to BYTESTREAM, enter the command BYTESTREAM or BYTE at the ftp> prompt:

  ftp> BYTESTREAM
  200 Type set to L (byte size 8).

You can also use the TYPE [transfertype] command to change the file transfer type. To set the transfer type to BYTESTREAM, you can enter:

  ftp> TYPE BYTESTREAM
  200 Type set to L (byte size 8).




Performing Directory Operations


Transferring Files