Saving an BufferedImage to raw bytes
- by Nander
Hello i want to Saving an BufferedImage to raw bytes
i do this for the moment
InputStream in = new ByteArrayInputStream(fileData);
BufferedImage image = javax.imageio.ImageIO.read(in);
BufferedImage imageModifier = ResizeImage.resize(image, 10, 10);
but know i want to save my file so i don(t know how to convert for do this
FileOutputStream fileOutStream = new FileOutputStream(fileToCreate);
fileOutStream.write(fileData);
Thanks