Skip to main content
Participant
January 11, 2007
Answered

newbie: displaying images

  • January 11, 2007
  • 2 replies
  • 649 views
I'm new to working withing ColdFsion and to IIS, and hopefully this is an easy one for someone here. I have my ColdFusion pages displaying, but can't display images, even with a direct URL. Do I need to set something in ColdFusion to allow images to display? IIS has jpg and gif registered as mime type, do I need to also register them for the added web site (seems they would inherit)? Or is something else blocking images that I'm missing? I'm allowing "Web Services" through the server's firewall settings, and get no images even with the firewall off, so that's not it. Maybe a file permissions issue? I've tried a lot of things and searched for a long time, so thought I'd post in hopes of help or some direction.

My setup: Windows Server 2003, IIS 6.0, ColdFusion MX 6,1,0,83762, Windows Firewall

Any help greatly appreciated,
Eric
This topic has been closed for replies.
Correct answer Newsgroup_User
Unless you are doing something very sophisticated, ColdFusion has
nothing to say about the displaying of images.

ColdFusion creates the HTML (including any image tags) to be sent to the
browser as a response to a request. The browser parses this HTML and
makes any requests for image files it needs to the web server. The
browser incorporates the delivered image content from the web server
into the rendered page.

Take a look at the generated HTML code for the page. Post relevant
parts here if you need help interpreting the code. Most likely you are
not correctly generating <img ...> tags for some reason.

P.S. Yes CF can and does do more then HTML responses these days, but
for this discussion, the HTML response is what is of concern.

2 replies

January 11, 2007
Are you getting the "broken image" icon? If so, you may not have the correct path to the image specified in your <IMG> tag.
Newsgroup_UserCorrect answer
Inspiring
January 11, 2007
Unless you are doing something very sophisticated, ColdFusion has
nothing to say about the displaying of images.

ColdFusion creates the HTML (including any image tags) to be sent to the
browser as a response to a request. The browser parses this HTML and
makes any requests for image files it needs to the web server. The
browser incorporates the delivered image content from the web server
into the rendered page.

Take a look at the generated HTML code for the page. Post relevant
parts here if you need help interpreting the code. Most likely you are
not correctly generating <img ...> tags for some reason.

P.S. Yes CF can and does do more then HTML responses these days, but
for this discussion, the HTML response is what is of concern.
brew_birdAuthor
Participant
January 11, 2007
Nothing sophisticated, it's just an images directory in the application. It didn't seem like a ColdFusion issue, it seems more related to IIS or NTFS permissions. I've tried numerous permission settings and am not getting it, so am hoping someone has an idea.

And I'm sure the <img src=""> tags are correct. I can't view the image on the page or in FireFox or IE with a full URL to the image. It seems so simple, and yet...argh!

Actually, on full URL I am getting this message, so will try an IIS forum:

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

Thanks for your feedback!