0👍
I suggest you change the produces
to MediaType.IMAGE_JPEG_VALUE
Example:
@GetMapping(path = "/image", produces = MediaType.IMAGE_JPEG_VALUE)
public @ResponseBody byte[] getImage() throws IOException {
InputStream in = getClass().getResourceAsStream("image.jpg");
return IOUtils.toByteArray(in);
}
- [Vuejs]-Is it possible to create a method that refreshes a single vueJS component?
- [Vuejs]-How to change the cursor to progress when the image is loading and change it to pointer when the image is fully loaded in vuejs?
Source:stackexchange.com