Hello everybody
I want to read all of the data in an binary file like gif file to send the file through network. what is the best way? I using winsock but I don't know how to read all data in the file. I used this but it dosn't work
Dim st As FileStream = File.Open("C:\test.gif", FileMode.Open)
Dim binaryFile As New BinaryReader(st)
Dim FData As String
FData = MsgBox(binaryFile.ReadString())
While (EOF(binaryFile.GetHashCode()))
MsgBox(FData)
FData = MsgBox(binaryFile.ReadString())
End While