It's not really clear what you mean by "convert each short integer to binary number" - a short is already a number, and its representation is naturally ...
stackoverflow.com