Hey all

I've got a page that is outputting a file (mp3 to be exact) I want to
hit that with cfhttp and output the data back to the browser as a
valid mp3 file. The reason why cfhttp is calling a cfm that serves a
mp3 is that I have to simulate what the external service is going to
do when it is developed so no questions about why im doing that! ; )

I tried this:

<cfhttp url = "http://localhost/servemp3.cfm"; />
<cfset thefile = cfhttp.fileContent >
<cfcontent type = "audio/mpeg" >
<CFSCRIPT>
   writeOutput(toString(theFile));
</cfscript>

and i tried this:
<cfhttp url = "http://localhost/servemp3.cfm"; />
<cfcontent type = "audio/mpeg" file="#cfhttp.fileContent#" >



--
Steven Ross
web application & interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 928-484-4364


-------------------------------------------------------------
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
-------------------------------------------------------------



Reply via email to