0
To convert a byte that comes from the sql database into image in Listview I do so:
<asp:Image runat="server" ID="Image1" CssClass="image1style"
ImageUrl='<%# "data:image/jpg;base64,"+
Convert.ToBase64String((byte[])Eval("imagem1")) %>'/>
I’d like to do the same thing but using
<img src= " " ...
It worked that way:
<img runat="server" ID="Img1" src = '<%# "data:image/jpg;base64,"
+ Convert.ToBase64String((byte[])Eval("imagem1")) %>'
What is that
imagem1
within theEval
?– Jéf Bueno
@jbueno is the table field that contains the byte array (image). I was able to solve this problem by simply replacing the control with <img and repeating the rest.
– Daniel