getProfilePicture

@Transactional
@GetMapping(value = "/get/{id}/profile-picture")
open fun getProfilePicture(@PathVariable id: String): ResponseEntity<Array<Byte>>

Retrieves the profile picture for a user given their ID. If no profile picture is found for the user, a 404 (NOT_FOUND) response is returned. If a profile picture exists, the image data is returned with the appropriate content type.

Return

a ResponseEntity containing the profile picture data as a byte array with the appropriate HTTP content type if available, or a 404 NOT_FOUND response if no profile picture is found

Parameters

id

the ID of the user whose profile picture is to be retrieved

See also

ProfilePicture
ResponseEntity