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
I did try setting the encoding to encoding ascii but it doesn't seem to take. I might not be doing it correctly. here's my code:
    Dim scp = New ScpClient(strIPAddress, intPort, strUsername, strPassword)
    scp.ConnectionInfo.Encoding = Encoding.ASCII
    Try
        scp.Connect()
        scp.Upload(New FileInfo(My.Computer.FileSystem.SpecialDirectories.Temp & "\blastoff.call"), "/var/spool/asterisk/callfiles/blastoff.call")
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    Finally
        scp.Disconnect()
    End Try

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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