Why not just do

CFSETTING ENABLECFOUTPUTONLY="Yes" SHOWDEBUGOUTPUT="No">
> <CFHEADER NAME="Content-Disposition" VALUE="inline; Sample.jpg">
> <CFCONTENT RESET="Yes" TYPE="image/jpeg"
file="c:\Documentsandettings\jgarza\MyDocuments\My pictures\Sample.jpg">


Justin MacCarthy


> The one where I do what you suggest (CFHEADER) does not work then it comes
> to sending the jpeg to the user:
>
> <CFSETTING ENABLECFOUTPUTONLY="Yes" SHOWDEBUGOUTPUT="No">
> <CFHEADER NAME="Content-Disposition" VALUE="inline; Sample.jpg">
> <CFCONTENT RESET="Yes" TYPE="image/jpeg">
> <CFFILE action="READBINARY" file="c:\Documents and settings\jgarza\My
> Documents\My pictures\Sample.jpg" variable="Image">
> <cfoutput>#Image#</cfoutput>
>
> This fails in the #Image#.  Cold fusion refuses to send anything but text.
> I tried encoding in base64 to no avail.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to