I don’t know your codes, because you provided none. So I’ll try to guess. It seems like you do not say to your client he will download an image.
Try adding this to your response header : Content-type: image/jpeg
I’ll give some example code, but I can’t promise it will work for you.
@GetMapping(path = "/myImage", produces = MediaType.IMAGE_JPEG_VALUE)
If you want something more accurate, please provide your controller code.
1
solved How to send BufferedImage using Spring?