@ResponseBody
@RequestMapping(value = {"/",""}, method = RequestMethod.GET, produces = MediaType.IMAGE_JPEG_VALUE)
public byte[] getImageFormDB(@RequestParam Long picId) {
Image image = imageService.load(picId);
return image.getFile();
}

相关文章:

  • 2022-12-23
  • 2021-10-13
  • 2021-09-25
  • 2021-10-08
  • 2021-12-08
  • 2021-12-12
  • 2021-09-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案