title: FTP'ing structured files in binary mode
body: <p>I am trying to FTP a file onto a Tandem HP/Non-Stop environment. The records are written to the file using a C process which are then read using another C process. </p>
  
  <p>The file itself contains some records which are not readable using a standard text editor. I figured this meant that to transfer the file correctly i needed to transfer it in Binary mode. Trying the transfer in binary mode produces the following errors. </p>
  
  <pre><code>ftp&gt; bin
  200 Type set to I.
  ftp&gt; put SM11098
  200 PORT command successful.
  553 Error: Structured file transfer only allowed in Ascii mode,
  ftp&gt; ascii
  200 Type set to A.
  ftp&gt; put SM11098
  200 PORT command successful.
  150 Opening data connection for SM11098 (10.220.98.237,4078d).
  552 SM11098: Relative file record length &gt; Maximum record length
  ftp: 1576960 bytes sent in 4.08Seconds 386.70Kbytes/sec.
  </code></pre>
  
  <p>I tried to google the above errors but nothing came up. 
  A structured file to me sounds like its a binary files that contain structured records. Shouldnt this be FTP'd in binary mode? The FTP program is forcing me to use ASCII mode. </p>
  
  <p>What is the second error for? (i.e. "Relative file record length > Maximum record length")</p>