image.ImageUrl = dr("Image") Not that dr("Image")="D:/abc.jpg"
image.ImageUrl = "Handler1.ashx" The Name is Handler1.ashx Public Class Handler1 Implements System.Web.IHttpHandler Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim LsM_Image As String LsM_Image = "D:\abc.jpg" 'If (context.Session("ImageBytes")) IsNot Nothing Then 'Dim image As Byte() = DirectCast(context.Session("ImageBytes"), Byte()) context.Response.ContentType = "image/JPEG" 'context.Response.BinaryWrite(image) 'context.Handler.("D:\abc.jpg") context.Response.Pics("D:\abc.jpg") 'End If End Sub ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property End Class
D:/abc.jpg
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)