|
-
Jul 4th, 2008, 09:27 AM
#1
Thread Starter
Hyperactive Member
[2005] sending file through network
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|