title: How to convert int[] to byte[]
body: <p>I have an array of integers which represent a RGB image and would like to convert it to a byte array and save it to a file.</p>
  
  <p>What's the best way to convert an array of integers to the array of bytes in Java?</p>