Awesome, that works great!

I *ALMOST* got it working with less java...

<cfsilent>
<cffile
        action="READBINARY"
        file="/home/opencf/www/template/header.jpg"
        variable="byteArray">
        <cfset str = 
createObject("java","java.lang.String").init(byteArray,javacast("int",0),arraylen(byteArray),'utf-8')>
</cfsilent><cfheader name="Content-Length"
        value="#arrayLen(byteArray)#"><cfcontent type="image/png" 
reset="Yes"><cfoutput>#str#</cfoutput>

Unfortunately, this method doesn't quite work, as applying the charset 
messes a FEW things up (if I look at the response in Fiddler, they're 
*ALMOST* identical).

But your way works, so I'm pretty happy 'bout that =)

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262492
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to