1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

how to display a png image obtained as a blob object from an api in Angular 18

Discussão em 'Angular' iniciado por Gaston Bordier, Setembro 30, 2024.

  1. I need to display an png image obtained as a blob object from an api in Angular 18

    From an angular application I am obtaining a png image as a blob object, when I execute the subscribe the object has the and print the object, it has the correct size of the image:

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    However, the image does not display in the view. Devtools throws this error:

    enter image description here

    Several searches on the web claim that this is enough, but it does not work. What am I missing?

    Continue reading...

Compartilhe esta Página