I have server and client console apps which communicate fine as well as sending some string. Here is the code...
Server
public static void Main()
You just need to read the file in as a byte array and then send that byte array across the wire
var bytes = File.ReadAllBytes(path); stm.Write(bytes , 0, bytes .Length);