Last post Dec 28, 2006 05:40 AM by webbes
Dec 20, 2006 07:56 PM|Falklian|LINK
I've written an ASP .NET 2.0 application that takes some information from an XML file at a specific URL and creates a PNG image based on information pulled from the file.
It works fine, but I get some weird results as far as the file size of the image is concerned in different locations and browsers.
Take a look here: http://www.vanguardofthestorm.org/sigtest.aspx?id=2177185&gender=f
At home, using Firefox, if I right-click on the image and select properties, it reports the image size around 90kb. At work, using Firefox again, I get a file size of around 140kb. Using IE7 at work, I get an image size of around 90k. I have not tested
IE7 at home. I've also had a friend take a look and he gets the same results in Firefox and unknown results in IE, however he's using older versions of those two web browsers.
Home - Firefox 2.0 - ~90kb
Work - Firefox 2.0 - ~140kb
Work - IE7 - ~90kb
Friend - Firefox 1.5 - ~140kb
Friend - IE6 - unknown - claims "Size: not available"
Work and home computer running XP Pro SP2 and friend is running XP Home SP1
The thing I find extremely odd is that if I save the image to disk from Firefox at work, which reports the image size as ~140kb, I get a local image that is ~90kb.
I could imagine that it might be my code as I'm very new to using GDI+ but I just don't understand the discrepancies between the different browsers using the same (or near same) OS. The hosting I use is running Windows Server 2003, however I do not know
any details other than that. I have not checked in other browsers other than those two (I do have the latest version of Opera on my laptop, might take a look at that soon).
Any insight would be much obliged.
Dec 28, 2006 05:40 AM|webbes|LINK
How do you report the contentlength(Response.ContentLength)to the browser? Or do you not mention to report it at all?