Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ZLIB.DLL to compress a VFP Web Service response
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Using ZLIB.DLL to compress a VFP Web Service response
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01120911
Message ID:
01120911
Views:
218
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?
Next
Reply
Map
View

Click here to load this message in the networking platform