question: @ Override public byte [ ] encode ( BufferedImage bufferedImage ) throws IOException { ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ) ; encode ( bufferedImage , outputStream ) ; return outputStream . toByteArray ( ) ; }
target:  Encodes an image in JPEG format.