Reading binary file(image)

So here's the thing, im reading a binary file wich is an image. I think im reading this correctly, so i have the whole binary info i red stored in a buffer and i wanna display this in my screen like '0100010010011' is there a way for me to do this? Help would be much appreciated im on a tight schedule, thanks in advance.

I get the hex... but what i really wanted was to see the '01001011' relative to each byte... since the buffer is of type char, even tough im reading the file using "rb" i tought i could write char by char and see that info...

I cant use itoa i get undefined reference... and the buffer where i have the binary info stored, is already type char... i really dont understand why when i try to type whats there as char i get trash.. since im going to have to convert whats there to decimal it would really be handy if i could see whats there as binary. Thanks anyways XD