REBOL Document

Decompress - Function Summary


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
    5221


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


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

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 2004 REBOL Technologies