Questions: “Is to possible to deliver a picture via ASP.Net?” and “Do I really have to write a dummy ASPX page?”
Short Answers: Yes. No!
More Sophisticated answer:
Usually one would write a so called ashx page, where the h means handler. If you have general requests to a page you should use such handler pages.
But the truth is your customer will see, as an image source for example: www.blabla.tld/funnypicture.ashx. And in fact I would not like this, because it’s simply not transperent. To come around this problem you have the possibility to implement the interface IHttpHandler in a “normal” class and publish the handler in the web.config of your application. The entry will look something like:
<httpHandlers>
<add verb=”GET” path=”SswLogo.gif” type=”GetImage” />
</httpHandlers>
“verb” describes the kind of http request handled, you may write a comma seperated list here (e.g.: verb=”GET,POST”), “path” means the url entered by the user (from your application root) and finally “type” describes the type name of the handler, with namespace if needed (e.g.: type=”MyNamespace.MyType”).