How do I convert a InputStream to BufferedImage in Java/Groovy?

36,830
BufferedImage imBuff = ImageIO.read(object.getInputStream());

Should work...

Share:
36,830
Dycey
Author by

Dycey

Small business specialist. Remote access and teleworking. Database design and implementation. Dynamic web internet and intranet sites. Technical journalism. Lecturing & Training. See: http://www.linkedin.com/in/rjdyce

Updated on June 24, 2020

Comments

  • Dycey
    Dycey almost 4 years

    Yes, I'm that stupid. I'm trying to stick some groovy code together from various cookbook recipes, and I can't get from an InputStream to BufferedImage in Java/Groovy. Google is not being my friend at present.