Links
Apps
Archives
- January 2021
- April 2011
- August 2010
- July 2010
- June 2010
- January 2010
- October 2009
- June 2009
- March 2009
- February 2009
- January 2009
- December 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- April 2008
- February 2008
- December 2007
- November 2007
- September 2007
- May 2007
- January 2007
- December 2006
- August 2006
- July 2006
- June 2006
- May 2006
- March 2006
- January 2006
- November 2005
- October 2005
- August 2005
- July 2005
- June 2005
- May 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003
- August 2003
- April 2003
Daily Archives: November 22, 2004
How to store a Java object into a byte array
ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); ObjectOutputStream objectStream = new ObjectOutputStream(byteStream); objectStream.writeObject(theObject); byte[] array = byteStream.toByteArray();