GetProfilepictureViewByPath
Function: getProfilepictureViewByPath()
getProfilepictureViewByPath<
ThrowOnError>(options):RequestResult<GetProfilepictureViewByPathResponses,GetProfilepictureViewByPathErrors,ThrowOnError>
Defined in: app/api/sdk.gen.ts:759
Retrieves and streams a profile picture file based on its storage path. The GetProfilePictureByPath endpoint allows the system to serve image assets directly to the client. By providing the internal path, the endpoint retrieves the file stream and returns it with the correct content-type header, enabling browsers and applications to render the image correctly. This approach avoids exposing direct file system paths to the client and centralizes image delivery through a secured API route.
Type Parameters
ThrowOnError
ThrowOnError *extends* boolean = false
Parameters
options
Options<GetProfilepictureViewByPathData, ThrowOnError>
Returns
RequestResult<GetProfilepictureViewByPathResponses, GetProfilepictureViewByPathErrors, ThrowOnError>