Hmmm, ok so I probably need to use "ReadBinary" - this then brings the next problem of outputing the binary...
The below code just saves the error message saying that I cant convert the binary to a string because it contains NULLS. Anyone have any clues? Thanks <!--- non-cfcontent version ---> <cffile action="READBINARY" file="F:\sites\delivery\test_mp3.mp3" variable="yourMP3"> <cfheader name="Content-type" value="application/octet-stream"> <cfheader name="Content-Disposition" value="Attachment; filename=test_mp3.mp3"> <cfscript> writeoutput(yourMP3); </cfscript> On Wed, 2003-10-29 at 18:46, James Cowperthwaite wrote: > Thanks for that Mark, > > Do the following code snips look valid? > > They result in the same file being generated and saved which is a 2k > file containing the following: > " ID3 " > > So I am guessing that the non-cfcontent version would work fine if I was > doing the file read properly? Maybe? > > <!--- cfcontent version ---> > <cffile > action="READ" > file="F:\sites\delivery\test_mp3.mp3" > variable="yourMP3"> > > <cfcontent type="application/octet-stream"> > <cfheader name="Content-Disposition" value="Attachment; > filename=test2.mp3"> > <cfoutput>#yourMP3#</cfoutput> > > <!--- non-cfcontent version ---> > <cffile > action="READ" > file="F:\sites\delivery\test_mp3.mp3" > variable="yourMP3"> > > <cfheader name="Content-type" value="application/octet-stream"> > <cfheader name="Content-Disposition" value="Attachment; > filename=test2.mp3"> > <cfoutput>#yourMP3#</cfoutput> > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
