[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:



Sender: "Justin Kiteley" <justin@xxxxxxxxxx>

Command line FTP in Binary works with all the files I transfer to UNIX or
PC.  It translates character data and the result is not scrambled at all.
I've done the test you've referred to many times and what works with basic
FTP command line ( no commands executed before put) does not work with
FTP_API using ASCII mode.  The file I'm working with is just a flat file
with a 72 long alpha field.  The file name, member and field name is
IR03270450, would that cause any problems?

Justin



----- Original Message -----
From: "Buck Calabro" <Buck.Calabro@xxxxxxxxxxxx>
To: <ftpapi@xxxxxxxxxxxxx>
Sent: Thursday, May 17, 2001 9:14 AM
Subject: RE:


> Sender: Buck Calabro <Buck.Calabro@xxxxxxxxxxxx>
>
> >The file that lands on the PC or UNIX machine is not in ascii
> >format (all funny characters looks like the ebcdic translation was not
> >done).
>
> Justin, Generally you DON'T want binary if you're transferring a text
file.
> Binary means "no translate."  Also, if you are sending a database file
with
> packed fields, the packed fields don't come across properly no matter what
> you do.  If you send in Text mode and translate them, you'll juggle the
bits
> and therefore the value of the number.  If you send in Binary mode, there
> isn't many a PC application that can read packed data!
>
> If you have a hex viewer on the PC, fire that up and see what values
you're
> getting.
>
> One test: create a simple file, use DFU to add a line of text and use
> command line FTP to send it to the PC.  Once you've done that you can
verify
> that the file matches on both boxes, ruling out any translation issues.
> Then do the same transfer using the FTP API in Text mode.
>
> Buck
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------