Ajas, I'll share my thoughts. I'm no expert in this subject, and things may have changed, so someone can counter my observations.
First, the latter problem (of how files/pages opened via the browser open in an unexpected program) is normally a matter of configuring the browser to tell it how to handle a certain mime type. In the case of IE, though, it's so tied to the OS that you actually configure it in the OS itself (which is why Photoshop is opening the file, as it registered as the handler for that file type. Check out (in IE) Tools>Internet Options>Programs>Set Programs. For me, in Vista, that opens the "Default Programs" feature (also accessible from Control Panel). From that, I can choose "Associate a file type or protocol with a specific program", and tif and tiff are each in the list, where you can change there the program used-in your case to IE. But here's the big question: are you interested in doing this for yourself? Or for all users? In the latter case, obviously you have no control over their browser (which they use, or its settings), so it's a tougher problem. That's where you've done what you could, either configuring the web server for a static file, or using CFCONTENT for one served by CF, to set the mime type. If browsers are set to handle that, then it will work. But again you can't really control them. Hope the helps, and sorry if it turns out I got anything wrong. :-) /charlie From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Ajas Mohammed Sent: Thursday, June 04, 2009 4:36 PM To: discussion@acfug.org Subject: [ACFUG Discuss] Re: CF 7 & tif images ok, I tried this <cfcontent type="image/tif" file="#thisPath#\test.TIF" deletefile="no" /> tif doesnt show up but when i tried with 2 ff's, it works. i.e. <cfcontent type="image/tiff" file="#thisPath#\test.TIF" deletefile="no" /> However, I would Like Internet Explorer to show the tif image in browser window just like it does for jpg file. I have code which shows jpg in browser frame, but for tif, I get a pop up saying, open the file using Adobe photoshop. I guess thats because I have the software installed and Internet Explorer doesnt know how to serve tif. so question is, what i need to do so that tif is shown internet explorer iframe box. Thanks, <Ajas Mohammed /> http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Thu, Jun 4, 2009 at 4:21 PM, Ajas Mohammed <ajash...@gmail.com> wrote: Hi, We have tif images stored in a directory and I was wondering whats the easy way to render them in a cfm page. I tried jpg and it works fine. When I right click and see properties for this image, I see Type as JPG file. When I try .tif file, I get an x mark and when i see properties I see type as Not Available. Both test.jpg and test.tif are available in the referred directory. Do I have to add MIME type .tif in IIS for cfm to serve tif images? My code is very straightforward <cfset thisPath = "\\10.10.10.5\Image_Upload"> <cfcontent type="image/jpeg" file="#thisPath#\test.jpg" deletefile="no" /> this works but when i try code below <cfcontent type="image/jpeg" file="#thisPath#\test.TIF" deletefile="no" /> tif doesnt show up Any suggestions for this. thanks, <Ajas Mohammed /> http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------