One thing I've noticed . . . "100 * 100 * 30 = 30000" should be "100 * 100 * 3 = 30000", unless you're dealing with 240-bit colour.

Use an image viewer like eog (or something similar), rather than Windows Paint. Last time I checked, Windows Paint couldn't open RLE-encoded bitmaps.

And always remember that google is your friend. There should be something in there that is a good start.

(Note: I apologize if you've already googled it. I've no idea what the problem is, just trying to help if I can. )