OpenFileDialog fd=new OpenFileDialog(); //fd.Filter = "(*.flv)|*.flv"; byte[] sending_file; if (DialogResult.OK == fd.ShowDialog()) { FileInfo fil = new FileInfo(fd.FileName); textBox5.Text = fd.SafeFileName; string filepath =fd.FileName; FileStream fs = new FileStream(filepath, FileMode.Open, FileAccess.ReadWrite); BinaryReader br = new BinaryReader(fs); sending_file = br.ReadBytes((int)fs.Length); _socket.Send(sending_file);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)