We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
.NET Streams Explained
|
| Subject: |
|
Reading a int15 byte value |
| Date: |
|
2008-05-27 08:22:33 |
| From: |
|
elopezmota
|
|
|
|
Hi,
I'm trying to read a binary file containing an image, where the first 1024 bytes have the heather information and the rest is the actual image.
Now, I want to read from bytes 1002 to 1003 (which is a int16) to get the number of rows on the image. Following your examples, I can only read one byte at a time, this is 1002 and 1003, and I need to read the two bytes together to get the true number of rows on the image.
Any suggestion?
|