code: public static void output(BufferedImage image, OutputStream out)
              throws IOException {
          ImageIO.write(image, "JPEG", out);
      }
docs: 将指定的图片输出到指定位置
  
  @param image 指定图片
  @param out   输出位置
  @throws IOException