IProfilePictureService
Namespace: Backend.Interfaces
Assembly: Backend.dll
Defines operations for retrieving and uploading member profile pictures.
public interface IProfilePictureServiceMethods
GetProfilePictureByPath(string)
Retrieves a profile picture by storage path.
Task<(Stream Stream, string ContentType)?> GetProfilePictureByPath(string path)Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The storage path of the profile picture. |
Returns
| Type | Description |
|---|---|
Task<Stream, Stream, string, ContentType> | The picture stream and content type when found; otherwise null. |
UploadProfilePicture(Guid, Guid, IFormFile?)
Uploads and assigns a profile picture for a member.
Task<string?> UploadProfilePicture(Guid fromMemberId, Guid userId, IFormFile? image)Parameters
| Name | Type | Description |
|---|---|---|
| fromMemberId | Guid | The ID of the member performing the upload. |
| userId | Guid | The ID of the member whose picture is updated. |
| image | IFormFile | The image file to upload. |