'How to get image in response with postman

I have an endpoint to get the image i uploaded earlier, it works but not well Postman response

I don't know if i can get the image in response

my controller endpoint:

@PreAuthorize("hasAuthority('user:write')")
@GetMapping(value = "{messageId}/files/{file_name}")
    public FileSystemResource getFile(@PathVariable("messageId") Integer id,@PathVariable("file_name") String fileName) throws FileNotFoundException {
        return new FileSystemResource(messageService.getImage(id,fileName));
    }

Response headers:

Response headers



Solution 1:[1]

Postman example to save image

Click on 'Save Response', then 'Save to a file' with the extension you need. Luck!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Adolin K.