Image size limit

J

Jim McGivney

On an aspx page I use the following code to display an image:

//Display the graphic

string imgee = this.Request.QueryString.ToString();

System.Web.UI.WebControls.Image myImage = new
System.Web.UI.WebControls.Image();

myImage.AlternateText = "Image Not Found";

myImage.ImageUrl = http://www.nospam.com/ + imgee;

Label1.Text = "FileName: " + imgee;

myImage.ImageAlign = ImageAlign.Middle;

Page.Controls.Add(myImage);



Why is the image size limited to about 570kb ? The page will display
graphics less than 570kb but will not display larger graphics.

Thanks in advance for your help.

Jim
 
D

Daniel Walzenbach

Hey Jim,

afaik there is tno limitation @ 570kb. The error must be sth. else. Can you
post a little more code? Preferably the .aspx page and the code behind
file...

Regards

Daniel Walzenbach
 
L

Lau Lei Cheong

I think this is more like a Web Server setting problem. Because all the
WebControl.Image has done for you is to forge the <img> HTML tag for you. It
does not know, and have no interest on the size of your image(except the
width and height if supplied) so shouldn't have imposed any limit on it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top