title: How to convert BufferedImage to an int[]?
body: <p>I'm looking to send over an Object that has a BufferedImage through a socket. BufferedImage is not serializable, so it needs to be converted to a serializable data type, and then back again. I have looked a lot online, and byte[] seems to be the go to send just a BuffereImage, but I'm trying to send an entire object so I'm leaning more towards int[]. I thought I ran across an answer that explained this on here a few weeks ago, but after 2.5 hours of searching I could not find it. I have tried the Java Oracle, but quickly got lost.</p>
  
  <p>If there is a better way please excuse my ignorance, as I have not really worked a lot with sockets and BufferedImage manipulation.</p>