Dim toSend As Byte() = System.Text.Encoding.ASCII.GetBytes("This is a sample text that i want to send") Dim myNWS As NetworkStream = connectedTCPClient.GetStream() myNWS.Write(toSend, 0, toSend.Length)
Dim img As Image = Image.FromFile("C:\myIMG.png")
Dim imgbyte As Byte() = Encoding.GetBytes(img)
Dim imgPath As String = "C:\MyImg.jpg" Dim bytes As Byte() = IO.File.ReadAllBytes(imgPath) < /pre> thanks very much
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)