DECOMPRESS

REBOL Dictionary 2.0


Summary:

Decompresses a binary series back to a string.

Usage:

decompress data

Arguments:

data - Data to decompress (must be: binary)

Description:

If the data passed to the DECOMPRESS function has been altered or corrupted, a decompression error will occur.


    write %file.txt read http://hq.rebol.net


    probe size? %file.txt
    3682


    save %file.comp compress read %file.txt
    probe size? %file.comp
    2253


    write %file.decomp decompress load %file.comp
    probe size? %file.decomp
    3682

Related:

compress - Compresses a string series and returns it.
debase - Converts a string from a different base representation to binary.
enbase - Converts a string to a different base representation.


<Back | Index | Next>

Copyright 2003 REBOL Technologies