Telnet is a protocol to execute commands remotely. It's not for transfer of files. There are many other protocols that will do that: scp, ftp, rsync, http to name a few well known ones.
Pick a protocol that the remote site supports and use that instead of trying to use the telnet object.
Comment on Re: ftp or scp session on a telnet object