In subdomain.domainname, I have a generic handler which is supposed to load images from the domainname
Dim Path As String = "http://www.domainname/"
context.Response.ContentType = "image/jpg"
context.Response.WriteFile(Path & ImgName & ".jpg")
The problem is that i cannot add a physical path, since the Responce.WriteFile accepts a physical path. And i get that valid virtual path error.
So how can i load images when images exist in domainname and my generic handler is at subdomain.domainname?
Is there any trick, i could use?
I do not want to move the handler to the domainname
Why not just redirect the request to the non-subdomain?