Chris Roller wrote:
> Does it with ASCII or binary mode, and with text and binary file.
> I did look and indeed the #13#10 is converted  into #10.  ftpAcceptLF
> doesn't matter.
> It is Unix.  Is there a TFTPClient setting to fix this, or do I simply
> convert #10s into #13#10s?

In order transfer data in binary mode you must set property BinaryMode
to TRUE as well as call the TypeSet command to send the transfer type
to the server. Same when switching back to ascii except property
BinaryMode must be set to FALSE before.

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


> 
>> -----Original Message-----
>> From: Dod [mailto:[EMAIL PROTECTED]
>> Sent: Saturday, January 13, 2007 04:02
>> To: ICS support mailing
>> Subject: Re: [twsocket] FTPClient Upload/download size incorrect?
>> 
>> Hello,
>> 
>> Is it text file or binary file ?
>> 
>> If  text  file  be  sure  to set binary mode, if not all
>> #13#10 may be converted  into  #10  if  destination is Unix
>> system so each text line will loose 1 byte.
>> 
>> regards.
>> 
>> CR> Using FtpTst demo, I upload a file from c:\dir, size
>> 61,184.  After
>> CR> upload, "size" indicates 60995.  Download the same file,
>> size is 61,440.
>> 
>> CR> Anybody know what's going on?  I need the sizes to be same on
>> CR> upload/download.
>> 
>> 
>> --
>> To unsubscribe or change your settings for TWSocket mailing
>> list please goto http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to