Render blob image with Angular 4

后端 未结 3 656
我寻月下人不归
我寻月下人不归 2021-01-22 21:19

I\'m trying to render an user image that comes from soap server response, it not should be difficult but i dont know how start to do.

This is the code of the request way

3条回答
  •  礼貌的吻别
    2021-01-22 22:10

    If you have blob value, you can directly set the value in image tag in html..

    Instead of this.imgStr = 'data:image/jpeg;base64,' + b64; use this.imgStr = b64;

    
    

提交回复
热议问题