ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.[Solved] Binary Images are not displaying in ASP.Net GridView<p>i was just making a mistak that in FindControl, i was using column "Data" instead of ID ("img") .</p> <pre class="brush: csharp">protected void gvDepartments_RowDataBound(object sender, GridViewRowEventArgs e) { try { if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView dr = (DataRowView)e.Row.DataItem; string imageUrl = &#34;data:image/jpg;base64,&#34; + Convert.ToBase64String((byte[])dr[&#34;Data&#34;]); (e.Row.FindControl(&#34;img&#34;) as System.Web.UI.WebControls.Image).ImageUrl = imageUrl; } } catch (Exception ex) { } }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/175972/Solved-Binary-Images-are-not-displaying-in-ASPNet-GridView/https://www.aspforums.net:443/Threads/175972/Solved-Binary-Images-are-not-displaying-in-ASPNet-GridView/Thu, 01 Aug 2019 03:46:49 GMT