Brijesh Solutions
Get Solutions Regarding Computer Problem/Tricks ,C#, .NET and SQL Server , Java Script ,JQuery
Content
Home
ASP.NET
SQL Server
Java Script
Computer
Tuesday, 8 April 2014
Directly Bind Byte[] Type Image data to Image control asp.net
Use this code for display image on both
asp Image
control and
html img
tag
<asp:Image ImageUrl='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("IMG_DATA")) %>' />
OR
<img src='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("IMG_DATA")) %>' />
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment