Home All Groups Group Topic Archive Search About

Shared Compression for VB.NET and PHP

Author
24 Oct 2006 2:15 AM
MARTIN LANNY
Upon a call from my windows based vb.net program, Php script on a
remote server grabs data from MySQL database and exports it into string
and saves to a txt file I download and parse in my VB.NET application.
Sometimes there is lot of data to download and it takes a while.
What I need is for php to zip the data and save it compressed. And then
download the zipped data to my vb.net program and unzip it before I
parse it.
Is there some free compression which would produce the same results in
php and vb.net?
Something like free zip or rar component for both languages?
Thanks for your help. This would speed up our application tremendously.
Martin

Author
24 Oct 2006 9:46 AM
Leon Mayne
"MARTIN LANNY" wrote:
> Upon a call from my windows based vb.net program, Php script on a
> remote server grabs data from MySQL database and exports it into string
> and saves to a txt file I download and parse in my VB.NET application.
> Sometimes there is lot of data to download and it takes a while.
> What I need is for php to zip the data and save it compressed. And then
> download the zipped data to my vb.net program and unzip it before I
> parse it.
> Is there some free compression which would produce the same results in
> php and vb.net?
> Something like free zip or rar component for both languages?
> Thanks for your help. This would speed up our application tremendously.
> Martin

If the PHP server is *nix based then you could gzip the text file and then
use something like:
http://www.icsharpcode.net/OpenSource/SharpZipLib/
from your .NET app to decompress it.