how to display sql server images in asp.net c#
hai to all ,,,
please help me , it is urgent for me.
how to get images from sql server into asp.net through c# .
and load that image in middle of the screen , and one more thing. i am getting images from sql server by using below code :
byte[] image = (byte[])command.ExecuteScalar();
stream.Write(image, 0, image.Length);
Bitmap bitmap = new Bitmap(stream);
Response.ContentType = "image/gif";
by using the above code i am getting the image and it is displayed in new window...
what is my requirement is : how to show the image in the middle of the screen ( the code should be written in form_load) , some data will be placed around the image ..
please give me answer as soon as possible, thanking you all
bitmap.Save(Response.OutputStream, ImageFormat.Gif);
|