Two possibilities. One DOES NOT work, the other just might.
I.
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.
II.
I have not tried, but I suspect a CFLOCATION could do the job. Maybe.
<CFQUERY datasource="foo">
UPDATE TABLEWHATEVER
SET COUNTER=COUNTER+1
WHERE IMAGENAME=#URL.ImageFile#
</CFQUERY>
<!--- Or whatever other magic for the counting you need --->
<CFLOCATION ADDTOKEN="No"
URL="http://server2.mycomp.com/images/#URL.ImageFile#">
---------
By the way, if someone knows a work around for case I. above, it would be a
great addition to my arsenal.
<Jaime/>
> -----Original Message-----
> From: wpdd [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 8:17 AM
> To: CF-Talk
> Subject: <IMG SRC = "Some_CFML_file.cfm"> Banner Exchange
>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_00AD_01C03507.16A59F10
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> I've used a perl program called webvert and there code for the pages =
> looks something like:=20
>
> <A =
> HREF=3D"http://www.someserver.com/cgi-bin/ex1/display.pl?member=3Dclip1;p=
> age=3D01">
> <IMG =
> SRC=3D"http://www.someserver.com/cgi-bin/display.pl?member=3Dclip1
> ;page=3D=
> 01">
> </A>
>
> could I use CF content if so how I would I do that=20
> need to log the that the image has been displayed
> then display the image
> the image is locate on some other server
>
> thanks mike
>
> ------=_NextPart_000_00AD_01C03507.16A59F10
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.3105.105" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>I've used a perl program called =
> webvert and=20
> there code for the pages looks something like: </FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2><A=20
> HREF=3D"http://www.someserver.com/cgi-bin/ex1/display.pl?member=3Dclip1;p=
> age=3D01"></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><IMG=20
> SRC=3D"http://www.someserver.com/cgi-bin/display.pl?member=3Dclip1
> ;page=3D=
> 01"></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></A></FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>could I use CF content if so =
> how I would=20
> I do that </FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>need to log the that the image has been =
>
> displayed</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>then display the image</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>the image is locate on some other=20
> server</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>thanks mike</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_00AD_01C03507.16A59F10--
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> 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.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.