> I'm not sure how it works out with Word 97, but you could convert your 
> 
> document into a multipart-related MIME message with the images 
> included 
> in Base64. Set the MIME type to application/vnd.ms-word and use 
> cfheader 
> to give it a name ending in .doc and it will open correctly in recent 
> Word versions.
> 
Jochem,

If I've got HTML content in a database (unknown to me, in other words, I don't 
know what all is in the HTML content - it's whatever the admin put in using the 
CMS) and this content links to external images, how would this work?  I seem to 
remember there is a toBase64() function in CF, so could I do something like 
this:

<cfsavecontent var="whatever">
.....dump all my db content here...
</cfsavecontent>
<cfset base64string = toBase64(whatever)>
<cfcontent type="application/vnd.ms-word">
<cfoutput>#base64String#</cfoutput>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282555
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