i have a spring boot backend ... made a service that returns a byte array image .. how to receive it in Angular and render it...
here's my angular code :
getFile(id) {
const _loadFileByIdUrl = environment.baseUrl + `finance/api/getFile`;
const fd = new FormData();
fd.append('id', id);
return this.http.post<any>(_loadFileByIdUrl, fd
);
}
i'm trying to console.log() the resoponse is 200 but i got error message : message: "Http failure during parsing for http://localhost:8080/finance/api/getFile"