def METHOD_NAME(self, chunk):
    try:
        handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.BIG_ARRAY)
        self.filenames.add(filename)
        os.close(handle)
        with open(filename, "w+b") as f:
            f.write(zlib.compress(pickle.dumps(chunk, pickle.HIGHEST_PROTOCOL), BIGARRAY_COMPRESS_LEVEL))
        return filename
    except (OSError, IOError) as ex:
        errMsg = "exception occurred while storing data "
        errMsg += "to a temporary file ('%s'). Please " % ex
        errMsg += "make sure that there is enough disk space left. If problem persists, "
        errMsg += "try to set environment variable 'TEMP' to a location "
        errMsg += "writeable by the current user"
        raise SqlmapSystemException(errMsg)