Dim ms As System.IO.MemoryStream ms = New IO.MemoryStream() Original_img.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp) Dim bbb As String bbb = Convert.ToBase64String(ms.ToArray()) Dim hh As New System.Web.UI.HtmlControls.HtmlImage hh.Src = "data:image/gif;base64," + bbb picdiv.Controls.Clear() hh.Width = 150 hh.Height = 180 picdiv.Controls.Add(hh)
<img src='Handler.ashx?file=img1' />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)