cross-platform compress & decompress

Monte Goulding monte at sweattechnologies.com
Mon Dec 1 19:15:32 EST 2003


> On Monday, December 1, 2003, at 03:59  PM, Dave Cragg wrote:
>
> > Are you treating the files as binary data and not as text files? That
> > is, when you save and open, you should use "binfile" and not "file".
> > For example:
>
> I'm using "binfile" for all. This works fine on Win and works fine for
> Mac as long as I use binary files created on the same platform.

Try compressing an decompressing the whole file to see if some stage in your
parsing is corrupting the compressed data. Richard's suggestion of compress
then base64Encode is also appropriate for binary data in an XML document.

Cheers

Monte



More information about the use-livecode mailing list