Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send binary file to .NET web service
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01576023
Message ID:
01576029
Views:
58
>Here is what I have so far...obviously, the system characters in a PDF are causing this to fail...
>
>oSync = CREATEOBJECT("MSSoap.SoapClient30")
>oSync.MSSoapInit("http://localhost:53088/scale_sync.asmx?WSDL")
>...
>l_result = oSync.PDFxfer(cUserName,cPwd,"Send",ALLTRIM(pdf_local.cname),FREAD(nPDFHandle,nSize))
>
>The final parameter is the content of the pdf and the only parameter I need to troubleshoot.
>

I tend to base64 encode binary data before I send it. So I'd read the entire file into a var, then encode it. ex STRCONV(m.lcBinaryFile, 13) then decode it on the other side. It's not really the most efficient way, but I've found it the simplest way from VFP. Of course, that assumes you have control of the web service.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform