Deflater reads and writes databases using ExgDBWrite and ExgDBRead. The records in a compressed database must contain data that, once uncompressed, can be fed to the ExgDBRead function. So you can't just compress some data and stick it in a record in a PDB and expect deflater to do something with it.


Deflater is just supposed to be a sample app showing how to use SysZLib. If you need to compress some data on your windows machine and decompress it on your Palm OS device, you prolly need to write your own tool. Take a look at the deflater source for some ideas.

-Justin Clark
Copera, Inc.
[EMAIL PROTECTED]

Leonardo Czernisz wrote:
I'm using DEFLATER only in PALM, deflater compress whole .PDB and create a
new .PDB with only one record(and in this record are all compressed data),
in palm I compress/uncompress with DEFLATER utility without problems...

In windows I'am using ZLIB.DLL to compress the same .PDB and put a header in
compressed data using PAR to send this .pdb to PALM. (the .PDB in palm stay
with one record and this record have all compressed data) but I don't get
uncompress this data...

Leonardo

"Henk Jonas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

LEONARDO wrote:

I using DEFLATER application to compres/uncompress a .PDB in palm.. this

works fine...

But when I zlib a .PDB in Windows(and put header in .pdb using par) and

put this .PDB in PALM Os, deflater do not uncompress my deflated .PDB...

My question is???
- Data generated by zlib is platform independent???
- the version of zlib to uncompress a .PDB must be the same version of

that was compressed by zlib???

- if I compress in Windows I can use zlib 32-bits without problem??? or

I must to compress with zlib 16-bits because palm is 16 bits???

Thank very much

Leonardo Czernisz



Areyou sure DEFLATER compress the whole PDB in desktop format? Or is it
not more likely (without having a look at DEFLATER) it just compress (or
compresses?) the record one by one?

Regards
Henk

--
-------------------------------------------------------------------------
  Henk Jonas
  Palm OS  certified developer

  [EMAIL PROTECTED]                                   www.metaviewsoft.de
-------------------------------------------------------------------------






-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to