Original Post
I am trying to write a Bitmap file creator to understand the format better. I am writing it in Java and kind of running into a road block as far as writing the data to file in the right byte sequence. Is there an easy way to convert basic types, int and long to a sequence of bytes?