Last post May 19, 2005 12:46 PM by Qnnn
May 18, 2005 05:33 AM|SomeNewTricks2|LINK
Hello, is it better to display png images instead if jpg images ?
Which needs more loading time ?
May 19, 2005 05:29 AM|Qnnn|LINK
May 19, 2005 06:25 AM|haidar_bilal|LINK
Hello, I have an aspx page which will display statistics images for subsystems, Let me explain more:
I have several subsystems, I go into the database, get their images' paths, then go to another server get the image (generated daily), and display it on the aspx page. the images are png around 2k each. The problem is not in the database search, nor in getting
images, because I traced that and I got that only 60ms are needed to finish the process, however, its taking like 2 minutes to display the images.
What might be the reason ? Does it have to do with buffering and flushing ?
May 19, 2005 07:07 AM|Qnnn|LINK
Are you proxying somehow these images?
I had similiar problem some time ago. I used HttpHandler to perform downloads. After problems I made simple scripts that were proxying images and problem was solved. Well... if script makes download then it is always good idea to flush and then end the response
May 19, 2005 07:22 AM|haidar_bilal|LINK
what do you mean proxying the images ?
And what will teh Handler bring ?
May 19, 2005 07:55 AM|Qnnn|LINK
Instead of making direct request to image you have some script that retuns the image as response.
I used HttpHandler for URL rewriting. There was some cases where rewriting wasn't needed (image URLs and also some markup). And in these cases when more than 1 image was to be downloaded there went something worng. ASP.NET process wants 70% of CPU and time
between request and response was about 2 or 3 minutes. After throwing away HttpHandler I was able to make requests to script that returned images and other content as expected.
If you want to know why there was this kind of problem - don't ask me. I tried to find the reason couple of days but I found no answer.
May 19, 2005 08:43 AM|haidar_bilal|LINK
Any code example on image handler ? I know a handler would handle for example ".png", what will be different when using handler ? Once you get a png file, you will simply do what ?
May 19, 2005 12:46 PM|Qnnn|LINK
I had situation where I had to choose picture programatically that was to be shown. Same name but different version for mobile devices with different capabilities.