With the new βFileβ ActionResult, I was thinking of creating a controller to display specific images in my ASP.NET MVC application.
Something like:
<img src="/Photo/Show/hello" alt="Hello" title="Hello" />
against
<img src="/Photo/Folder/Hello.jpg" alt="Hello" title="Hello" />
I'm curious what the impact of performance will be. Assuming I did nothing but return the image file from the controller, is there a noticeable difference in performance when the image is called from the controller action compared to just encoding the path to the src attribute?
image asp.net-mvc
Chaddeus
source share