def METHOD_NAME(self, data):
    blockid = "%6d" % len(self._block_list)
    try:
        self.connection.put_block(self.container, self.name, data, blockid)
        self._block_list.append((blockid, len(data)))
        return len(data)
    except azure.WindowsAzureError as e:
        raise e