473,320 Members | 2,122 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,320 software developers and data experts.

What is the performance difference between outputing images directly and by .NET? thanks!

I have a question, when I store images on my server, I can let user access
them by url like http://myurl/images/(imagename). I want to have more
control on it, I can provide user a url like http://myurl/file/(imagename).
Then in the dll that handle the url, I can use httpresponse.writefile. I am
wonderring how much burden it will bring on a server? is it a good idea to
do that way?
Thanks!
Jul 21 '05 #1
1 1218
Having the user request an image directly will be faster. IIS's cache will
respond very quickly, much faster than if it has to pass the request off to
ASP.NET. You should use normal images unless you need the extra control.

-mike
MVP

"david" <wy*****@hotmail.com> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
I have a question, when I store images on my server, I can let user access
them by url like http://myurl/images/(imagename). I want to have more
control on it, I can provide user a url like http://myurl/file/(imagename). Then in the dll that handle the url, I can use httpresponse.writefile. I am wonderring how much burden it will bring on a server? is it a good idea to
do that way?
Thanks!

Jul 21 '05 #2

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

Similar topics

8
by: DraguVaso | last post by:
Hi, I'm new to WebServices, and I'm doing some tests (with a small VB.NET-application) to know the performance-difference between a WebService and the 'normal'-way of getting data (just...
4
by: wriggs | last post by:
Hi, Any suggestions on the following as I've kind of run out of ideas. I have 2 servers which are the same spec ie box, processor etc. The only difference I can tell is that the production box...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
8
by: Rachel Suddeth | last post by:
I have an application where some forms have many (say 100) UserControls on them (each of which contain a label, an image, and a data entry control), and each UserControl has a ToolTip provider...
2
by: Bruce W.1 | last post by:
I've got a ton of product images. Originally I figured I'd just make them blobs in SQL Server, in a row with the product description, etc.. But now I'm wondering if a simple image file (jpeg or...
1
by: david | last post by:
I have a question, when I store images on my server, I can let user access them by url like http://myurl/images/(imagename). I want to have more control on it, I can provide user a url like...
48
by: Alex Chudnovsky | last post by:
I have come across with what appears to be a significant performance bug in ..NET 2.0 ArrayList.Sort method when compared with Array.Sort on the same data. Same data on the same CPU gets sorted a...
8
by: Jon Slaughter | last post by:
can one "stream" image data to a browser? I created an image using gd and when I do imagepng I just get the binary data for the image written as text instead of the image itself. Now I'm...
2
by: Mirko Dziadzka | last post by:
Hi all I'm playing around with metaclasses and noticed, that there is small but mesurable a performance difference in the code shown below. With a more complex example I get a 5 percent...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.