I’m trying to convert ByteArray to BufferedImage an vice versa in Kotlin.
But it must work with GraalVM native image.
I tried with
- javax.imageio.ImageIO ImageIO.read(inputStream)
- org.apache.commons.imaging.Imaging Imaging.getBufferedImage(imageData)
But it does not work on native image.
Is there a way to resize / scale an image without converting it to buffered image before?
Or is there a way to convert with another Library, which works with GraalVM native image?