Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send binary file to .NET web service
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01576023
Message ID:
01576029
Vues:
56
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform