I have an app that is using sockets to dend data. Right now i can encode text from a textbox and send it to the server app where it is read, no problem.
What i need to do is grab a file that is already in binary form and send it to the server where i need to read it.
Can anyone give me pointers, i am lost in streamriters and advice from every corner of the web i can find. Seems simple but cant implement it
I tried this but all it sends is the file name (C:\blah\blah.dat etc) across to the server, not the file itself
Dim ofd As New OpenFileDialog
Dim Data() As Byte = System.Text.Encoding.UTF8.GetBytes(ofd.FileName)