Try this:
fileStream.Position = 0x8001;
fileStream.Read(MyBytes, 0, 5);
Repeat it for 0x8801 and 0x9001.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
Using FileStream.Read(MyBytes, 0, 32) I read the initial 32 bytes to read magic number.
To detect ISO CD/DVD image files, according to here, .iso file magic number is 43 44 30 30 31 but I have problem reading offset.
I don't know how to handle:
0x8001
0x8801
0x9001
Offset number is what I need to set in FileStream.Read(MyBytes, < Offset Number >, 32)
For all file types is usually 0, or 4 etc... No idea how to handle HEX number here? (main code in VB)
Try this:
fileStream.Position = 0x8001;
fileStream.Read(MyBytes, 0, 5);
Repeat it for 0x8801 and 0x9001.
vb.net supports hex literals
FileStream.Read(MyBytes, &H8001, 32)
oh, if I'm not wrong, 0x8001 equals 32769, does it mean:
FileStream.Read(MyBytes, 32769, 32)
?
yes, you can convert the hex value to decimal rather than letting the compiler do it. in both cases the compiler converts to binary.