hi friends,
in this bit of code for my ashx handler, i am getting time out expired error at the line
Stream str = new MemoryStream((Byte[])reader[0]);
The page is an image handler page and the number of images that are being handled by it is taking more time than allowed. How can i increase the command time of the
Sql query which handles it. Thank you
while (reader.Read())
{
Stream str = new MemoryStream((Byte[])reader[0]);
Bitmap loBMP = new Bitmap(str);
Bitmap bmpOut = new Bitmap(100, 100);
Graphics g = Graphics.FromImage(bmpOut);
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
g.FillRectangle(Brushes.White, 0, 0, 100, 100);
...
Go to the complete details ...