Yeah I've tried what you suggested... it doesn't work. I just get a
quicktime movie with a question mark on it.

I guess I should go get firebug and look to see what it is sending.
Everything I've found on the web has said I have to write it to the
disk. I was just trying to take advantage of the vast ammount memory
on this box and avoiding the overhead of IO.

-Steven

On 11/22/06, Charlie Arehart <[EMAIL PROTECTED]> wrote:
The second approach won't work at all. The file attribute expects to point
to a file, not a variable. Try VARIABLE instead. That may be all you need.
You may want to thrown in a RESET="yes" as well, so that it will remove any
output generated in the page prior to the CFCONTENT. You ought also to turn
off debugging in that page (CFSETTING ShowDebugOutput="no".)

Also, open a new browser window before requesting the URL that does the
CFHTTP/CFCONTENT. Sometimes the browser will cache previously generated
output--even if it shows that it's new data, it may cache other headers.
Just take my word: open a new file to test when making such changes. :-)

Finally, if that still doesn't work, you need to compare what's being sent
to the browser in your approach compared to the real MP3. Use a tool like
Fiddler or Firebug to see.

/Charlie
http://www.carehart.org/blog/

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Ross
Sent: Wednesday, November 22, 2006 10:12 AM
To: ACFUG ColdFusion Discussion
Subject: [ACFUG Discuss] cfhttp retrieving a file

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






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






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