Huh. If you've got the IIS virtual directory implemented, why use cfcontent? The virtual directory should make all the images accessible from the client web browser.
Additionally, the code as you've shown is going to hit the CF server twice, one to get img.cfm and then a second time to get img2.cfm. If you give the URL that goes to the image instead of the page that fetches the image Additionally, using the web accessible URL in the img src attribute will reduce your request-response pairs by 1/3. As implemented here, you've got 3 request-response sequences: request 1 - get img.cfm from IIS/CF response 1 - return HTML for img.cfm to browser request 2 - get img2.cfm from IIS/CF request 3 - get testimage.jpg from \\servername\nameofshare response 3 - return image to CF server response 2 - return image to browser If you use the web-accessible URL you get request 1 - get img.cfm from IIS/CF response 1 - return HTML for img.cfm to browser request 2 - get testimage.jpg from IIS virtual directory for \\servername\nameofshare response 2 - return image to browser Just a thought... On Tue, May 13, 2008 at 11:28 PM, Ajas Mohammed <[EMAIL PROTECTED]> wrote: > img2.cfm has this code below, thats all... > > <cfcontent type="image/GIF" file=" > \\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> > > > On Tue, May 13, 2008 at 9:44 PM, Howard Fore <[EMAIL PROTECTED]> wrote: > >> On Tue, May 13, 2008 at 4:15 PM, Ajas Mohammed <[EMAIL PROTECTED]> >> wrote: >> >>> 1. instead of cfincluding the img.cfm, do a >>> <cfif fileExists(theFile)> >>> <img src="...*img2.cfm*"> >>> </cfif> >>> >> >> What does img2.cfm do? Does it return/output the web accessible path to >> the image file? >> > -- Howard Fore, [EMAIL PROTECTED] "The universe tends toward maximum irony. Don't push it." - Jeff Atwood ------------------------------------------------------------- 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 -------------------------------------------------------------