Advertisement

06.24.2008 at 09:37AM PDT, ID: 23511638
[x]
Attachment Details

cfhttp to retreive remote image on coldfusion 5

Asked by woaz in Cold Fusion Markup Language, ColdFusion Application Server, WebApplications

Tags: Coldfusion 5, Firefox, n/a - internal

Hi,

I've tried many things, the code attached is where I am now with it. Basically, I am trying retrieve images from a remote server (inside the firewall) for display back. Only the web server outside the firewall is allowed in to get the images.

The only problem is because of support reasons and this running on an archaic CMS I am stuck with only CF5 at my disposal. I've seen examples elsewhere of people doing this but with at least CF 6 or 7.

I have tried it with getasbinary set to "yes" and that doesn't help. Also, Firefox shows the URL of the cfm page as the result and IE shows the familiar image icon with a red "x" in it.

Thanks in advance for any assistance.Start Free Trial
1:
2:
3:
4:
5:
<cfsetting enablecfoutputonly="yes" showdebugoutput="no">
<cfcontent type="image/png; charset=ISO-8859-1">
<cfheader name="Content-Type" value="image/png">
<cfhttp GetAsBinary="yes" url="http://images.domain.com:8080/i/image.png" method="GET"></cfhttp>
<cfoutput>#trim(toString(cfhttp.filecontent))#</cfoutput>
 
Loading Advertisement...
 
[+][-]06.26.2008 at 01:56PM PDT, ID: 21878949

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:18PM PDT, ID: 22010091

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cold Fusion Markup Language, ColdFusion Application Server, WebApplications
Tags: Coldfusion 5, Firefox, n/a - internal
Sign Up Now!
Solution Provided By: woaz
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628