Create a regular HTML img
element like so:
<img runat="server" id="image" />
And in code behind do this:
image.src = "data:image/png;base64," + Convert.ToBase64String(imageBytes);
Where imageBytes is a byte[]
.
You are done. The image will be displayed.
More Related Contents:
- Convert webpage to image from ASP.NET
- Resizing an image in asp.net without losing the image quality
- Should I store my images in the database or folders? [duplicate]
- Render HTML as an Image
- How to restrict file type in FileUpload control
- How to display binary images into a gridview in ASP.NET using C#?
- How to retrieve binary image from database using C# in ASP.NET
- Determine if a number can be made with prepicked numbers and times
- The provider is not compatible with the version of Oracle client
- Best way in asp.net to force https for an entire site?
- Entity Framework Refresh context? [closed]
- Can I get more than 1000 records from a DirectorySearcher?
- Clearing Page Cache in ASP.NET
- Adding your own HtmlHelper in ASP.NET MVC 3
- How to find reason for Generic GDI+ error when saving an image?
- How to implement “Access-Control-Allow-Origin” header in asp.net
- How can I export a GridView.DataSource to a datatable or dataset?
- Easiest way to parse “querystring” formatted data
- ASP.NET File Upload
- asp.net Button OnClick event not firing
- Recursive TreeView in ASP.NET
- Full postback triggered by LinkButton inside GridView inside UpdatePanel
- Unable to find the requested .Net Framework Data Provider. It may not be installed
- GeneralLink in Sitecore
- Change cell color on different values – Gridview
- Bind Dictionary with list in viewmodel to checkboxes
- Select multiple fields group by and sum
- How to return XML in ASP.NET?
- iTextSharp international text
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4