encodeBufferedImage

fun encodeBufferedImage(image: BufferedImage): JsonPrimitive

Convert a buffered image to a PNG file encoded as a Base64 Json string.