Compare commits
1
Commits
f3b1d901a8
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a9316ed6f |
@@ -122,7 +122,7 @@ public class FileUploadController : ControllerBase
|
|||||||
return NotFound("not found image");
|
return NotFound("not found image");
|
||||||
}
|
}
|
||||||
[HttpPost("[action]")]
|
[HttpPost("[action]")]
|
||||||
public async Task<IActionResult> DownloadPersonPhotoPerson(DownloadFileCriteria criteria)
|
public async Task<IActionResult> DownloadPersonPhoto(DownloadFileCriteria criteria)
|
||||||
{
|
{
|
||||||
|
|
||||||
var result = await _personPhoto.DownloadPersonPhotoPerson(criteria.Id,criteria.PhotoType ,criteria.FileName);
|
var result = await _personPhoto.DownloadPersonPhotoPerson(criteria.Id,criteria.PhotoType ,criteria.FileName);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export class ImageDisplayComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
}
|
}
|
||||||
loadImage(fileName: string | null, personId: number, photoType: number): void {
|
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({
|
this.subscription.add(download.subscribe({
|
||||||
next: x => {
|
next: x => {
|
||||||
if (x.statusCode == 1)
|
if (x.statusCode == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user