Without knowing how you are reading and/or want to write its hard to give specific advice. I will make the suggestion to use a BufferedImage because this object readily allows you to read and write...