Saving an BufferedImage to raw bytes

Posted by Nander on Stack Overflow See other posts from Stack Overflow or by Nander
Published on 2010-03-31T17:36:02Z Indexed on 2010/03/31 17:43 UTC
Read the original article Hit count: 410

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about image