Uncompress and ftp a file

i have a compressed file, i need to ftp this file to remote server. while ftp i should uncompress and send, but the uncompressed file shouldn't write in the local server file system.

is there any options how to do this using a named pipes in ftp??

greatly appreciate your suggestions? Thanmks

unless you are using proprietary software, ftp cannot compress/uncompress on the fly ...

if you are able to setup ssh access to the remote server, you can ...

 cd /localdir; tar cvf - localfile | ssh user@remoteserver "cd /remotedir; tar xvf -"

An alternate for a compressed file with SSH:-

cd /localdir; cat localfile | ssh user@remoteserver "cd /remotedir; uncompress > targetfile"

Obviously, substitute gunzip for uncompress if that's more appropriate.

Robin