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

  • Thread starter Thread starter david
  • Start date Start date
D

david

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!
 
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
 
Back
Top