Hi all, I am trying to show / see the binary code of a file. So far I have this:
VB Code:
  1. Dim fStrm As FileStream
  2.         Dim bytes(9) As Byte
  3.  
  4.  
  5.         fStrm = New FileStream("c:\test.gif", FileMode.Open, FileAccess.Read)
  6.         fStrm.Read(bytes, 0, bytes.Length)
  7.  
  8.         Dim i As Integer
  9.         For i = 0 To bytes.Length - 1
  10.             RichTextBox2.Text += bytes(i).ToString & vbCrLf
  11.         Next
This gives me
71
73
70
56
55
97
253
0
77
0
which I suppose are bytes. What is the logic interpreting the bytes as a range 0 through 255? How to make them 000101010s etc?