I have made a code through which i m retrieving images from database. Here`s the code:
byte
[] Image = Queries.GetImage(Id);
MemoryStream stream = new MemoryStream();
stream.Write(Image, 0, Image.Length);
Bitmap bitmap = new Bitmap(stream);
bitmap.Save(Response.OutputStream, System.Drawing.Imaging.
ImageFormat.Jpeg);
But, the images are to big for my radgrid to show in. I want to resize them before saving the bitmap into the output stream.
how can i resize it?