Revision as of 05:33, 23 November 2010 by Han84 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
public static byte[] convertIntArrayToByteArray(int[] data) {
	byte[] result = new byte[data.length];
	for (int i = 0; i < data.length; i++) {
		result[i] = (byte) (data[i]);
	}
	return result;
}


Back to JavaHowTo

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang