toBuffer

fun ByteArray.toBuffer(): BufferedImage

Convert the image bytes into an ImageIO Buffer