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
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:
Thanks for that Cassie,
That's similar with what I have in mind by sending the file(s) as
binary encoded, however my problem with that approach is: the numbers
of attachments is not fixed..
If I am not wrong Cassie, with your solution I have to declare a fix
number of attachments on my web
If you decided to go the binary encoding route, could you not send an array
of strings, or an array of structs if you wanted to include more information
about each attachment?
I have not tried the approach mentioned in the link you provided but it does
sound more standardised. We only needed to
i'm trying to concatenate two values - an absolute directory and a
filename into an absolute file reference for CFFILE to manipulate.
But i'm getting an error. I've tried every combination and
permutation I can think of but still havent hit the correct one . can
anyone see what i'm obviously
Mike,
It looks like you're got CF trying to do an integer division with two
strings. Try
cfset temporaryfile = gettemporarydirabs() \ theImage.getName()# /
instead. That should work for you.
Phil
-Original Message-
From: Mike Kear afpwebwo...@gmail.com
To: cfaussie
...of course without the # at the end
cfset temporaryfile = gettemporarydirabs() \ theImage.getName() /
-Original Message-
From: Phil Haeusler p...@gtnet.com.au
To: cfaussie@googlegroups.com
Date: Mon, 01 Jun 2009 14:47:58 +1000
Subject: [cfaussie] Re: String concatenation - what's
Hi Mike,
Your first option should work if they really are strings, I've done that
one often enuf myself. Evaluate is just doing the same job and I've
never seen toString being used lke that before :-)
if
cfset temporaryfile = #gettemporarydirabs()#\#theImage.getName()# /
does not work try
Thanks Phil,
Thats exactly what i thought it was too. The backslash which has to
go into the absolute path to the file, is causing CF to think it's
doing some artichmetic.
But I tried what you suggest and it gives the same outcome. Still
thinks its doing arithmetic. That's what's thrown me.
Thanks a lot Kym, I can see the logic in what you're suggesting.
I figured to myself, 'yes as always, Kym shows good sense'.So I
tried it.
Gave the same infuriating outcome -
the line cfset string1 = gettemporarydirabs() / gives the following error:
Mike Kear wrote:
Thanks a lot Kym, I can see the logic in what you're suggesting.
I figured to myself, 'yes as always, Kym shows good sense'.So I
tried it.
Gave the same infuriating outcome -
the line cfset string1 = gettemporarydirabs() / gives the following error:
Mike,
What is gettemporarydirabs as I don't see it in the CF8 documentation?
Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au
Adobe Platform Users Group, Sydney
June meeting: UG Tour Flex 4, Catalyst, Flash Builder, Coldfusion and Bolt
G'day Chris,
That function is a method in the CFC i'm using. It goes out to the
config.cfc and gets one of a number of directory locations in the CMS
system. there are also methods like getproductImagedirABS() and
getProductThumbnailURL() And a whole host of other paths that
originate in
13 matches
Mail list logo