473,434 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Image size limit

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
Nov 19 '05 #1
2 2282
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
"Jim McGivney" <mc****@no-spam.sbcglobal.net> schrieb im Newsbeitrag
news:eV**************@TK2MSFTNGP10.phx.gbl...
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

Nov 19 '05 #2
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.

"Jim McGivney" <mc****@no-spam.sbcglobal.net> ¼¶¼g©ó¶l¥ó·s»D:eV**************@TK2MSFTNGP10.phx.g bl...
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: http://links.i6networks.com | last post by:
I need to display pictures, but only as large as AxB. If it is smaller than AxB, then I will display it in the original size, if it is larger than AxB, I will resize it. However, if the size is...
4
by: Ken | last post by:
I would like to measure the fileSize of the image (without uploading it - php). I use: var size_pic = document.getElementById('num1').childNodes.fileSize; alert("size = " + size_pic); which...
6
by: Jensen bredal | last post by:
Hello gurus I need to upload to accept image upload on my site. I also need to display these images in a databound control. The image are upload in a database. My concers are: -How do i...
14
by: Rudy | last post by:
Hello all! I been trying to get a handle with Images. I have learned alot from the fine people here. So, I also learned that thumbnail images look terrible taken from a digital cam. I know why...
0
by: Mattia | last post by:
************************************************** Manage image without exhausted memory ************************************************** Hi; I have a big problem. I must create a script that...
0
by: wizardworkz | last post by:
Hello All! Having a bit of a problem combining php with javascript here. What I have is a store with images (There will be a smaller image of each item, and a larger image of each item, but I want...
9
by: tshad | last post by:
Is there a way to display images (imageButtons or linkbuttons for instance) as a max size (200px by 50px) and not have it stretch the image? What I want to be able to do is limit the real estate...
7
by: Peter Parker | last post by:
Could someone show me how to limit caption width to image width dynamically (image width is not known in advance) if that's possible? I was thinking of using Javascript to get the image width which...
2
by: mac | last post by:
Hi, I'm looking for a script that will allow me to upload images to a folder and shows pagination... pls can any body help me? i hav done with the uploading, but not able to do with the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.