ok well here is a simple example. To check it I am comparing the output on the screen with the contents of the test.jpg file in a hex editor. Everything is read correctly, except 00 (or "00000000") is read as 20 (or "00000020").
************************
filein = ReadFile("C:\test.jpg")
While Not Eof(filein)
read1 = ReadByte( filein )
Print(Hex$(read1))
waitkey()
wend
*************************
************************
filein = ReadFile("C:\test.jpg")
While Not Eof(filein)
read1 = ReadByte( filein )
Print(Hex$(read1))
waitkey()
wend
*************************