Hi guys,
I was wondering if you could help me on reading a binary file into 2D array. I have an image that has dimension of (100,100). I am using FileStream class. When I run the code I get EndOfStreamException error at line 44. I have pasted the for loop section of the code below.
Any help will be appreciated.Code:For x = 0 To 99 For y = 0 To 99 byteRead1(x, y) = br1.ReadByte ' line 44 (exception thrown here) Next y Next x




Reply With Quote