BufferedImage转为InputStream
public InputStream bufferedImageToInputStream(BufferedImage image) throws IOException {
ByteArrayOutputStream os = new ByteArrayOutputStream();
ImageIO.write(image, "JPG", os);
return new ByteArrayInputStream(os.toByteArray());
}

相关文章:

  • 2022-01-17
  • 2021-11-12
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-02-24
猜你喜欢
  • 2021-08-17
  • 2021-06-25
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
相关资源
相似解决方案