I've the following code that returns an image in C# Web API. So far so good but I can't map it to an image.
    [HttpPost]
    [Route("GetImage")]
    [ValidateAntiForgeryToken]
    public FileResult GetImage(string name)
    {
        if (string.IsNullOrEmpty(name)) {
            return File("imgs/nodisponible.jpg", "image/jpg");
        }
        var imagen = REST.GetImage(name);
        return new FileContentResult(imagen, "image/jpeg");
    }
So on the javascript side I made:
  getimage(word: any): Observable<any> {
    return this.http.post<ArrayBuffer>(this.baseUrl + 'library/getimage', word, {
      headers: this.headers,
      withCredentials: true,
    });
  }
and then to show the image:
 const iname = JSON.stringify(this.consultadetalle?.cover_url);
  this.dataService.getimage(iname).subscribe((responses) => {
    $('#imagencover').attr('src', "data:image/png;base64," + responses);
  });
but the console says:
Http failure during parsing for https://localhost:44476/library/getimage"
How can I solve this?
Update: As I said, I'm using Web API, I don't have the view in C#, only javascript with angular. In C# I've only the controllers.
