I have done it before successfully with PDF files by encoding them to binary
then passing them as a string.

First by reading the file:
<cffile action="readbinary" file="#filepath#" variable="objBinaryData" /

Then included the base64 string in the XML:
#ToBase64(objBinaryData)#

Then on the other end:

<cfset objBinaryData = ToBinary(xmlText) />
<cffile action="write" file="#strFileName#" output="#objBinaryData#" />

I don't know if this applies to your problem though as Outlook is involved.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of felixt
Sent: Monday, 1 June 2009 12:16 PM
To: cfaussie
Subject: [cfaussie] Building CF webservice that accepts file attachments


Hi all,

Sorry for this newbie-ish question, I've been googling around for
awhile and couldn't find what I am looking for.

We have a ColdFusion web service that accepts emails pushed from
Outlook. This has worked fine, now boss wants to upgrade the apps so
that email attachments can be pushed to our web service as well.

Now what is the best way to do this in ColdFusion? Would it be as
simple as adding a new argument on the web service function with
type="binary"? But then what if the attachment is more than one?

The .NET guy that builds the Outlook extension suggested to look into
DIME, but having googled around I don't see any information to do this
in ColdFusion (although in Axis specs, they seem to support it).

Any suggestions/pointers would be very much appreciated!

Cheers,

Felix




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to