Re: [Harbour] How to gzip a string?
Hi Mindaugas, Since I believe you will commit these wrappers to the contrib area (since these might have 3rd party lib dependencies, unless we include these sources in core), I think it's fine to release them anytime, even now. Brgds, Viktor On 2008.01.10., at 14:27, Mindaugas Kavaliauskas wrote: Lorenzo Fiorini wrote: I don't need hbziparch but simply send deflate/gzip data to a web browser. Is the HB_COMPRESS/HB_UNCOMPRESS in xhb the only solution? I would like to find a non-xhb solution. Hi, I'm going to commit wrappers to zlib and minizip after release freeze. You can use Przemyslaw's code send in the following email: Original Message Date: Thu, 17 May 2007 14:22:21 +0200, Thu, 17 May 2007 15:23:14 +0300 From: Przemyslaw Czerpak [EMAIL PROTECTED] To: Harbour Project Main Developer List. harbour@harbour-project.org Subject: Re: [Harbour] ChangeLog 2007-05-17 00:20 UTC+0200 Przemyslaw Czerpak(druzus/at/priv.onet.pl) On Thu, 17 May 2007, Enrico Maria Giordano wrote: I asked you some time ago what you are using instead of hbzip.lib but the question is still unanswered... :-) For such things like creating archive files: HB_POPEN() ;-) for people who used to work with *nixes it's natural form. If I need some compression functionality for other jobs then I use ZLIP wrapper - I'm attaching it. best regards, Przemek -- Best regards, Mindaugas ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to gzip a string?
On Thu, 10 Jan 2008, Lorenzo Fiorini wrote: I don't need hbziparch but simply send deflate/gzip data to a web browser. Is the HB_COMPRESS/HB_UNCOMPRESS in xhb the only solution? I would like to find a non-xhb solution. You can use ZLIB wrapper I sent. Sooner or later we will have to add support for ZLIB in core code just like we added REGEX. Then we should define C API for INET sockets and finally add support for compressed stream connections. Now if you are using ZLIB wrapper then you can make after connection on both sides: compressedSocket := HB_GZDOPEN( HB_INETFD( openSocket ) ) and then use HB_GZWRITE()/HB_GZFLUSH()/HB_GZREAD() and other HB_GZ*() functions with compressedSocket handle to exchange data instead of HB_INETSEND()/HB_INETRECV(). Data will be automatically compressed and decompressed. You do not have to explicitly call any compress functions. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to gzip a string?
On Jan 10, 2008 3:07 PM, Przemyslaw Czerpak [EMAIL PROTECTED] wrote: You can use ZLIB wrapper I sent. Many thanks I found it. Sooner or later we will have to add support for ZLIB in core code ... and decompressed. You do not have to explicitly call any compress functions. Good news. Actually I don't need HB_UNCOMPRESS since that part is done by Firefox I've simply to provide the compressed data but reading the code I have seen that lit want the len or a buffer with len as second parameter. How could I know it? I mean is it possible a simple cZipped := HB_COMPRESS( cNormal ) -- rpc --- cNormal := HB_UNCOMPRESS( cZipped )? best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to gzip a string?
On Jan 10, 2008 2:27 PM, Mindaugas Kavaliauskas [EMAIL PROTECTED] wrote: I'm going to commit wrappers to zlib and minizip after release freeze. You can use Przemyslaw's code send in the following email: Many thanks I found it. best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] How to gzip a string?
I don't need hbziparch but simply send deflate/gzip data to a web browser. Is the HB_COMPRESS/HB_UNCOMPRESS in xhb the only solution? I would like to find a non-xhb solution. best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour