> Hi, I have an in-house webservice(ASP.NET) that is suppose to 
> return a base64Binary data(a image), I don't get any errors 
> but I don't seem to get the binary data:
> <cfset arr=StructNew()>
> <cfset arr.name="car.jpg">
> <cfinvoke webservice = "http://picHouse/getPic.asmx?wsdl"; 
> method = "GetPic" 
>   argumentcollection="#arr#" returnVariable = "foo"> 
> </cfinvoke> <cfoutput>#foo#</cfoutput>
> 
> Currently, I seem to be getting back an object b/c #foo# 
> prints '[EMAIL PROTECTED]' and 
> <cfdump var="#foo#"> prints a whole list of methods like 
> hashCode, equals, getSerializer...
> Can someone please tell me how I can use this object to 
> access this binary file.  I'm a newbie to this, so any 
> details or sample code are greatly appreciated.  Afterwards I 
> can save binary to my sql db.

The '[EMAIL PROTECTED]' is a pointer to what is
returned by the remote server; normally, this is what you get if you try to
output an object, I think. Anyway, you won't be able to just output the
response, even if it contains what you want. Try saving it as a file using
CFFILE, and see what you get. If that doesn't contain an image, I suspect
that the remote service is actually returning a class, which has methods you
can call - one of those methods may return the image for you.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
 
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore and Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:260862
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