title: How can I convert a binary file to another binary representation, like an image
body: <p>I want to take a binary file (exe, msi, dll, whatever) and be able to actually "see" the binary code or whatever base I'd like (hexadecimal whatever). Figured the easiest way would be just to output the code into a txt so I can examine it.</p>
  
  <p>Whats the best and easiest way to do this? Basically I am looking to convert the binary code into a picture for a project of mine.</p>
  
  <p>Similarly, it would be nice if I could take some binary code, and then convert it into a binary file.</p>
  
  <p>What are your methods for doing this, I listed C, C++, and C# because these seem to be the fastest programming languages and I figured this may take some time. I guess I am more interested in an answer in C, but I am mostly looking for some logic behind this.</p>