I don't fully remember but I believe that you have to wrap the data in
toBase64()

-----Original Message-----
From: Kim Hoopingarner [mailto:[email protected]] 
Sent: Friday, November 13, 2009 3:20 PM
To: cf-talk
Subject: Re: JPG in Database - Retrieve for web page


Thanks for the heads up on performance.  Will definitely warn client.

What is the trick to streaming to a web page?  I am using the cfheader
and cfcontent - to no avail.  It puts the header out - and then the next
line is not seen.  here's my simple code ... just trying to get one of
those BLOBS to work with a cfinput tag.

<cfform name="x" action="home.cfm" >
  <cfinvoke component="#session.cfc#.msr_multisigs"
method="getMSigImage" returnvariable="qMsigImage">
  </cfinvoke>

  <div>
        <cfheader name="Content-Disposition" value="inline">
        <cfcontent type="image/jpg" variable="binaryObject" >
            
  </div>
  <div>
        
        <cfinput type="text" value="HELLO" name="x">
        
  </div>
          </cfform> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328367
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to