christheprogrammer
Programmer
Hi again everyone,
I am using the following code to send a jpeg out thru HTTP:
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "image/jpeg"
Response.WriteFile(relativeJpegPath)
Response.Flush()
Response.Close()
where relativeJpegPath is the path including the jpeg filename.
and the jpeg appears nicely on the web page. However, when I right click the jpeg and select save as, the default filename for saving is Species.aspx which is the aspx page in which the code above appears. Indeed, when I save the file, it is asp.net code as opposed to the jpeg image I expect. What's up with this?
Thanks a bunch - tgif Life is like a box of chocolates, sweet
I am using the following code to send a jpeg out thru HTTP:
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "image/jpeg"
Response.WriteFile(relativeJpegPath)
Response.Flush()
Response.Close()
where relativeJpegPath is the path including the jpeg filename.
and the jpeg appears nicely on the web page. However, when I right click the jpeg and select save as, the default filename for saving is Species.aspx which is the aspx page in which the code above appears. Indeed, when I save the file, it is asp.net code as opposed to the jpeg image I expect. What's up with this?
Thanks a bunch - tgif Life is like a box of chocolates, sweet