Thanks Mythran

  • Thread starter Thread starter Quinn
  • Start date Start date
Q

Quinn

for some reason I can only post new message, not followups.

can you give me a small example how to read binary to byte array?
 
Quinn said:
for some reason I can only post new message, not followups.

can you give me a small example how to read binary to byte array?

You're using Outlook Express and can't post replies to threads? How come? Is
the button "greyed" out?
 
Quinn said:
for some reason I can only post new message, not followups.

can you give me a small example how to read binary to byte array?

Dim stream As FileStream = File.OpenRead("C:\images\test.gif")

Try
Dim reader As BinaryReader = New BinaryReader(stream)
Dim bytes As Byte() = reader.ReadBytes(CInt(stream.Length))
Finally
' Cleanup.
stream.Close()
End Try

HTH,
Mythran
 
Back
Top