Convert class and byte arrays
I want to convert to byte from other variable types without losing information. For example, I want to convert Int32 to 4 bytes or Float into 4 bytes, and put them into a byte array.
It looks like the Convert.ToByte(int32) will only convert to one byte, therefore I lose 3 bytes worth of information..... I am not sure, can any one offer advice?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

andrewRank #6,347 · 269 reputationPosted Feb 20, 2004, 4:36 PM EST
richang766 reputationPosted Feb 23, 2004, 9:16 AM EST
andrewRank #6,347 · 269 reputationPosted Feb 23, 2004, 9:44 AM EST