Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SFTP and SCP Additional text prepended when uploading txt file

$
0
0
Just a follow up I'm using the latest source code 23481. It's really strange because when I look at the text file before trying to copy it, it looks fine. And once it is copied to the server when I do "cat filename" I can see the "" at the beginning of the text. But when I open it in nano or VI the text looks fine.

Here's my sftp command:
sftp.UploadFile(File.OpenRead(My.Computer.FileSystem.SpecialDirectories.Temp & "\blastoff.call"), "/var/spool/asterisk/callfiles/blastoff.call")

scp command:
scp.Upload(New FileInfo(My.Computer.FileSystem.SpecialDirectories.Temp & "\blastoff.call"), "/var/spool/asterisk/callfiles/blastoff.call")

scp command which doesn't copy and has error "No such file or directory."
c.Upload(File.OpenRead(My.Computer.FileSystem.SpecialDirectories.Temp & "\blastoff.call"), "/var/spool/asterisk/callfiles/blastoff.call")

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>