posted 15 years ago
If you have the raw bytes to work with, then creating a BufferedImage first, just so that you can then use ImageIO, is probably not the best route.
The java.io.File, java.io.FileOutputStream, and (optionally) java.io.BufferedOutputStream classes should be all you need.