diff --git a/API/FamilyTreeAPI/Controllers/FileUploadController.cs b/API/FamilyTreeAPI/Controllers/FileUploadController.cs index 2dfd47e..c620ce7 100644 --- a/API/FamilyTreeAPI/Controllers/FileUploadController.cs +++ b/API/FamilyTreeAPI/Controllers/FileUploadController.cs @@ -122,7 +122,7 @@ public class FileUploadController : ControllerBase return NotFound("not found image"); } [HttpPost("[action]")] - public async Task DownloadPersonPhotoPerson(DownloadFileCriteria criteria) + public async Task DownloadPersonPhoto(DownloadFileCriteria criteria) { var result = await _personPhoto.DownloadPersonPhotoPerson(criteria.Id,criteria.PhotoType ,criteria.FileName); diff --git a/UI/src/app/pickperson/image.display.ts b/UI/src/app/pickperson/image.display.ts index 49835c0..a316ca2 100644 --- a/UI/src/app/pickperson/image.display.ts +++ b/UI/src/app/pickperson/image.display.ts @@ -34,7 +34,7 @@ export class ImageDisplayComponent implements OnInit, OnDestroy { } loadImage(fileName: string | null, personId: number, photoType: number): void { - const download = this.personService.downloadPersonPhoto(fileName!, personId, photoType); + const download = this.personService.downloadPersonPhoto64(fileName!, personId, photoType); this.subscription.add(download.subscribe({ next: x => { if (x.statusCode == 1)