We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Remote server

hi,
Can any body tell me why iam getting the error at myResp.GetResponseStream(); here i am downloading 100 records (100pages) from the database. records are comming from the database. but at the time of creating picture frame in asp.net i am getting such type of error.

how to solve this problem. here is my total code for picture frame

string url = objDs.Tables[0].Rows[i][“imageLink”].ToString();
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(url);
WebResponse myResp = myReq.GetResponse();
Stream stream = myResp.GetResponseStream();
bmpmap = new Bitmap(stream);
int pId = pres.Pictures.Add(new Aspose.Slides.Picture(pres, bmpmap));
Convert.ToDouble(bmpmap.Height)) * 500.0);
Convert.ToDouble(width)) * 500.0);
Decimal width = bmpmap.Width;
Decimal height = bmpmap.Height;
Decimal imgWidth = 0;
Decimal imgHeight = 0;
Decimal Divfac;
Decimal maxHeight = 1500;
Decimal maxWidth = 1500;
if (width < height)
{
Divfac = (width / height);
imgWidth = Divfac * maxHeight;
imgHeight = maxHeight;
}
if (width > height)
{
Divfac = (height / width);
imgHeight = Divfac * maxWidth;
imgWidth = maxWidth;
}
PictureFrame pf = slide.Shapes.AddPictureFrame(pId, 5600 - Convert.ToInt32(imgWidth), 750, Convert.ToInt32(imgWidth), Convert.ToInt32(imgHeight));