Author: leoguy | Posted on: 8/27/2009 12:40:15 PM | Views : 282

 Hi,
I have started experiencing a strange behviour with .tifs on my application's download page, it was successfully downloading pdfs and tifs before couple of week ago, however now pdfs are served correctly but .tifs are getting saved as .aspx file and, if I change the extension after saving the file on my machine as image.aspx to image.tif, it opens up correctly.
I have not changed any thing in the code, but i guess it started happening after i installed Office 2007 on my machine.
Any clue?
Here is the code that renders the images...
If file.Exists Then
      'set appropriate headers
      Response.Clear()
      'Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name)
      Response.AddHeader("Content-Length", file.Length.ToString()) Go to the complete details ...