Thanks.  You are Clapton!  It is the piece I had missing in my puzzle.  But
there is more...

I have been researching how to upload/retrieve images stored in a blob in
the DB (i.e. An employee picture belongs with the employee record.)

Today I have to go thru files.  CFFILE ACTION=UPLOAD seems to be the only
interface to the attached files.  And now CFCONTENT seems to be the way to
download.  Both require the use of a file.  This is somewhat inneficient.
Upload to a file, write to the db, delete the file, and then download the
reverse way.

If this is true,  Allaire guys (hint hint):  Colud there be a way to add
upload to the <CFQUERYPARAM>?  Could there be a way to add DOWNLOAD to the
<CFQUERYPARAM>? or "Column" attribute to <CFCONTENT>?  or variable to
<CFCONTENT> (so I can send a binvar)?  That way I do not have to deal with
the darn duplicated filenames!

<Jaime/>



> -----Original Message-----
> From: JustinMacCarthy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 9:53 AM
> To: CF-Talk
> Subject: Re: <IMG SRC = "Some_CFML_file.cfm"> Banner Exchange
>
>
> 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/[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.

Reply via email to