Use the binary type when declaring the web service parameter for the
file content, have a separate parameter for the file name (if
necessary) and use the normal CF way to invoke the web service.
Theoretically you shouldn't get Out of Memory errors but I haven't
tested this...

ws.cfc
<cffunction name="dataSubmit" access="remote">
     <cfargument name="file_name" type="string">
     <cfargument name="file" type="binary">

        <cfset fileWrite(arguments.file_name, arguments.file)>

</cffunction>


test.cfm
<cfset ws = createObject("webservice", "http://ws.cfc?wsdl";)>
<cfset ws.dataSubmit("ppur-test.xml", fileRead(expandPath('ppur-test.xml')))>

-- 
Mack

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342917
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to