import base64
import zlib


def decompress_string(value):
    """
    Convert base64-encoded, compressed data to a string
    """
    data = base64.b64decode(value)
    return zlib.decompress(data,47,4096).decode()