byte[] bytes = (byte[])t.Rows[0]["PicData"]; string base64String = Convert.ToBase64String(bytes, 0, bytes.Length); Image1.ImageUrl = "data:image/png;base64," + base64String;
<asp:Image ID="Image1" runat="server" Height="125px" Width="129px" ImageUrl='<%# (Eval ("PicData")) %>' />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)