<CFHTTP METHOD="GET" URL="" PROTECTED]/GetMap.asp">
<CFHTTPPARAM TYPE="FORMFIELD" VALUE="#XML_DOC#" NAME="xmlparams">
</CFHTTP>
<CFCONTENT
TYPE="image/gif"><CFOUTPUT>#toString(CFHTTP.FileContent)#</cfoutput></CFCONT
ENT>
HTH,
Sam
----------------------------------------------
Blog: http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
----------------------------------------------
> -----Original Message-----
> From: John McCosker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2003 11:27 AM
> To: CF-Talk
> Subject: returning an image via cfhttp
>
> Hi,
> using cfhttp to get an image returned,
> the vendor takes an XML file and reads it.
>
> I do the following to get the image,
> //XML_DOC = XML FILE
>
> <CFHTTP METHOD="GET" URL="" PROTECTED]/GetMap.asp">
> <CFHTTPPARAM TYPE="FORMFIELD" VALUE="#XML_DOC#" NAME="xmlparams">
> </CFHTTP>
> <CFCONTENT
> TYPE="image/gif"><CFOUTPUT>#CFHTTP.FileContent#</cfoutput></CFCONTENT>
>
> the correct scale is returned for the gif but it is the
> default blank space
> when an image cannot be found.
> The gif is not static, its dynamically generated.
>
> The web vendor creates the map data contained within the xml file.
>
> They have confirmed they are receiving data.
>
> You would have thought this would have worked, but they did
> not get any
> parameters passed within the request
>
> <CFHTTP METHOD="GET" URL="" PROTECTED]/GetMap.asp">
> <CFHTTPPARAM TYPE="XML" VALUE="#XML_DOC#" NAME="xmlparams">
> </CFHTTP>,
>
> If I try to do this <img src="" instead
> of cfcontent,
>
> I just get a page full of gobildy gook.
>
> any ideas,
>
> J
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

