You can tell the library to not use PQA compression with:

DWord dw = ctpConvNone;
INetLibSettingSet(LibRef, IHandle, inetSettingConvAlgorithm, &dw,
sizeof(dw));

LibRef and Ihandle you would get when you find and initialize the
library.

However, this will run up the user's transmission costs and run down
their batteries.  If you are sending a lot of data, I'd use your own
compression (compress at your server, decompress in your Palm app)
because the PQA compression isn't particular effective.  If you are just
sending simple web pages, I'd use PQA style compression.  It is pretty
simple.  Basically, HTML 'tags' are converted from text into 2 byte
'commands'.  Also, lower case characters are encoded into 5 bits.  There
is a 'command' to turn encoding off, so long strings of upper case
letters (which can be two byte 'escaped') don't expand in size.

The format is documented in the PALM QUERY APPLICATION FORMAT
SPECIFICATION, which can be found at the Palm web site.

-jjf


-----Original Message-----
From: Tom Zerucha [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 21, 2000 12:44 PM
To: Palm Developer Forum
Subject: Re: palmVii and compression


On Fri, Apr 21, 2000 at 10:35:55AM -0500, Urbano Zamora wrote:
> No. The unit decompresses the data and once you read it it is already
> decompressed.

Not quite.  For PQAs it decompresses it.  Using the INetLibrary,
unless you tell it to feed you uncompressed data (which I don't know
how to do), it will apply the same kind of compression it does to PQA
pages.

> KimDongGyun wrote in message <9099@palm-dev-forum>...
> >
> >I'm going to make a program getting something information from my
> >web server.( it's onlithe e program. not PQA)
> >It's a program for PalmVII. So, I'll use Inet library.
> >I understand the web clipping proxy server compresses the data.
> >Should I uncompress the data to get my data correctly?

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to