How do I convert a InputStream to BufferedImage in Java/Groovy?
36,830
BufferedImage imBuff = ImageIO.read(object.getInputStream());
Should work...
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, 2020Comments
-
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.