Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ZLIB.DLL to compress a VFP Web Service response
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Using ZLIB.DLL to compress a VFP Web Service response
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01120911
Message ID:
01120911
Vues:
215
Hi
I have a classic VFP Web Service that is having a huge success, so the customer is adding more and more data to the response. At this point, the web service gives back around 1MB of data in a string built by 4-5 XML concatenations. It stills comes back quite fast, but i would like to make it faster, and am also forecasting adding more stuff in there, so the result string will grow much bigger.
I thought, therefore, to compress the string prior to sending it, using ZLIB, then decompress it at the client's application. I forgot to mention the obvious, and that is that both the server and the client are VFP apps.
My questions are:
1) anyone has experience/some code how to use ZLIB from VFP, to compress a string then decompress it?
2) if 1) is successful, should i change anything in my Web Service or in the client, now that the data that goes through the wire is not a string but binary?

TIA
Jaime
Why do programs stop working correctly as soon as you leave the Fox?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform