Sorry didn't notice you are using CF (Server.Mappath()) will not work. ASP.Net VB only.
Main Topics
Browse All TopicsUsing Coldfusion 8 and IIS 7.
I'm trying to display an image that is located outside of my web root.
I've tried
<img src="C:\inetpub\wwwroot\Si
and
<img src="../../../Images/class
Neither work.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The first option should work. But if for some reason it doesn't, to get the second option to work then you probably just need to enable parent paths, which are disabled by default on IIS 6 and above. Here's instructions on how to enable them:
1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
2. Double-click your computer name in the left pane, and then double-click Web Sites.
3. Locate the Web site and directory that houses the ASP application.
4. Right-click the application site or directory, and then click Properties.
5. Select Home Directory, and then click Configuration.
6. Click Options, and then click to select the Enable Parent Paths check box.
7. Click OK two times.
http://support.microsoft.c
here's how you 'stream' images located outside of web root using CF:
http://kb2.adobe.com/cps/4
Azadi
PS:
to expand a bit more on Adobe's solution:
call your image as <img src="image.cfm?img=image.j
and your image.cfm page will be something like this:
<cfparam name="url.img" default="">
<cfif len(trim(url.img)) AND fileexists('C:\inetpub\www
<cfcontent type="image/jpeg" file="C:\inetpub\wwwroot\S
</cfif>
Azadi
Business Accounts
Answer for Membership
by: jtdebeerPosted on 2009-09-22 at 10:28:08ID: 25395264
You may want to use the server.mappath() ite/images /classifie ds/thumbs/ image.jpg
Or simply use the full url
ie) http://www.mywebsite.com/s
Tip first enter the url in your browser to see if it displayes the image.
Have fun