A bmp file is just like any other file. Read it byte for byte and stuff it in the array.