You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Press, Michael" <Mi...@Artesia.com> on 2003/04/09 19:00:40 UTC

FTP send changes file size

I'm using netcomponents to ftp a file to a remote server.  The FTP completes
successfully, but the file sent is 10 bytes smaller than the original.  It's
a 1.2MB JPEG file, and the image is distorted after the FTP (smaller files
are sent without change).  This is Unix->Unix.  A manual FTP using the Unix
command-line FTP results in the same file size at the destination.

Why would the file change size?  Is there some setting I'm missing that
would resolve this?

Thanks,
Michael

Re: FTP send changes file size

Posted by Dave Newton <da...@solaraccess.com>.
> I'm using netcomponents to ftp a file to a remote server.  The FTP completes
> successfully, but the file sent is 10 bytes smaller than the original.  It's
> a 1.2MB JPEG file, and the image is distorted after the FTP (smaller files
> are sent without change).  This is Unix->Unix.  A manual FTP using the Unix
> command-line FTP results in the same file size at the destination.

Are you sure it's a file size issue and not a binary/not-binary file
issue?

Dave



RE: FTP send changes file size

Posted by Jon Payne <jo...@ttpcom.com>.
Worth checking that you're in binary mode as opposed to text mode - that
would account for a file size change.

Jon

-----Original Message-----
From: Press, Michael [mailto:Michael.Press@Artesia.com]
Sent: 09 April 2003 18:01
To: 'Jakarta Commons Users List'
Subject: FTP send changes file size



I'm using netcomponents to ftp a file to a remote server.  The FTP completes
successfully, but the file sent is 10 bytes smaller than the original.  It's
a 1.2MB JPEG file, and the image is distorted after the FTP (smaller files
are sent without change).  This is Unix->Unix.  A manual FTP using the Unix
command-line FTP results in the same file size at the destination.

Why would the file change size?  Is there some setting I'm missing that
would resolve this?

Thanks,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org