compress() and uncompress()

Michael Mantkowski michaelj at
Tue Nov 29 17:08:08 UTC 2022

Hi Das,

Yes, there is a backup.  However, the compressed data represented 2 days of
experimentation and waiting.  I did not want to revisit it.  And I did not
want to store the original data length either.

Hi Alan,

That was a great idea!  I simply supplied 1,000,000 as my length parameter
and it works.  If you supply a value that is smaller than the original, you
get nothing but if it is larger it appears to give you everything back and
does not leave any padding at the end.

I don't really understand the need for this parameter in any case.  Never
would have thought you would need it and is why I never considered reading
the documentation for uncompressed ahead of time.  A mistake on my part for
sure but since the compress documentation said nothing about it, I just
rushed through it.

And there we go...  I just admitted that the "person" was me.  I am sure
none of you suspected that until now. lol



Michael Mantkowski
ClienTrax Software

-----Original Message-----
From: omnisdev-en On Behalf Of Alan Davey
Sent: Tuesday, November 29, 2022 11:39 AM
To: OmnisDev List - English <omnisdev-en at>
Subject: Re: compress() and uncompress()

Well that's a pretty bad implementation if one needs to supply the original
size of the data.

What happens if you specify a size that is larger than what you started
with?  Hopefully you will get the original data back with the excess padded
with some form of blank values.

On Tue, Nov 29, 2022 at 11:16 AM Michael Mantkowski <michaelj at>

> Suppose a "person" used the Omnis compress() function to compress the 
> data of 400,000 records.
> Now suppose this "person" did not read the information on the 
> uncompress() function until after this was done and only then noticed 
> that you need to supply the original uncompressed data size as a 
> parameter of the
> uncompress() function.  Note that the documentation for the compress() 
> function does not say that you should save the uncompressed size when 
> you use compress().
> Any idea how to uncompress your data at this point?
> *********************************************************************
> Michael Mantkowski
> ClienTrax Software
> 1-614-875-2245
> *********************************************************************
> _____________________________________________________________
> Manage your list subscriptions at Start a 
> new message -> mailto:omnisdev-en at
Manage your list subscriptions at Start a new
message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list