using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
FileStream fs = new FileStream(@"H:\Temp\test.bmp", FileMode.Open, FileAccess.Read);
BinaryReader r = new BinaryReader(fs);
foreach (byte b in r.ReadBytes((int)r.BaseStream.Length))
{
Console.Write(b);
Console.Write(' ');
}
Console.ReadKey();
}
}
}