how to change the image into byte and byte array into image

now i am developing one project. i want change the image into byte array and then byte array into image.
[111 byte] By [devisria] at [2007-11-27 7:46:37]
# 1
do you mean java.awt.Image?
j_shadinataa at 2007-7-12 19:27:34 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
FileInputStream is = new FileInputStream(file);byte[] result = IOUtils.toByteArray(is);with apache common IO lib
trauta at 2007-7-12 19:27:34 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...