displaying image on a image control
-
Hi I have created database where i store employees 's pictures and i am able to display this images on a asp.net page where i use "Response.BinaryWrite(dr.Item("Picture"))" so it display it.The problem is i have to display this pictures on a image control which i can't figure it how can i do it.
Mamphekgo
-
Hi I have created database where i store employees 's pictures and i am able to display this images on a asp.net page where i use "Response.BinaryWrite(dr.Item("Picture"))" so it display it.The problem is i have to display this pictures on a image control which i can't figure it how can i do it.
Mamphekgo
try this code................... Dim imageBytes() As Byte imageBytes = sqlCommand.ExecuteScalar() Response.Clear() Response.Charset = "" Response.Cache.SetCacheability(HttpCacheability.Public) Response.ContentType = "image/jpeg" Response.OutputStream.Write(imageBytes, 0, imageBytes.Length) Image1.ImageUrl = "Image.aspx" 'Your page name in which u have image control Response.End() please vote if this post helps u.