This probably isn't as easy as you think: each of the individual parts are pretty easy, but the actual putting-it-together bit needs some thought.
The easiest way to do this is to:
1) Read the whole file into an array of bytes.
2) Run through the array, converting each byte to a pixcel in an Image
3) Output the image as a file.
The first part is trivially easy:
File.ReadAllBytes[
^] will do that for you.
The last part is trivially easy:
Image.Save[
^] will do that for you.
The bit in the middle isn't difficult either, but it does take a little thought.
The major decisions you need to make are:
1) How does the byte value relate to a pixcel? Is this monochrome - i.e. zero is black, non-zero is white, or vice versa? Or greyscale - i.e. the byte holds a value which relates to the "greyness" value of the image? Or colour - i.e. a byte value contains a red, a green and a blue element? Or is the data a red byte, a blue byte and a green byte (with a possible Alpha component bytes as well?
2) How big is the output image supposed to be? To an extent, this is influenced by the byte / pixel relationship, but even if one byte == one pixel, the Image itself could be square or rectangular and still use the same number of bytes. If you get it wrong, the image will be be readable!
3) Is (gulp) the binary input data compressed in any way? Did it start life as a JPEG file, or a GIF? because if it did, then this is a very, very poor idea! :laugh:
This sounds like your homework, so I can't give you any code until I know you have tried it yourself, but first think about the above, and try to come up with some answers.