Load image from C# Byte array and place image in html tag using AngularJS

后端 未结 2 1840
暗喜
暗喜 2021-01-17 06:09

I\'m having an Image in the form of Byte Array, from that I\'m converting Byte Array from the following C# method

public HttpResponseMessage ReturnBytes(byte         


        
2条回答
  •  盖世英雄少女心
    2021-01-17 06:52

    Send your image not as a byte array, but Convert.ToBase64String the byte array and send as text. Then your code should work.

提交回复
热议问题