# Compress Entire Table ^df768d ```kusto // Convert table to string let Results = dynamic_to_json(toscalar(DeviceEvents | take 20 | extend Packed=pack_all() | summarize make_list(Packed))); // Compress the output let ResultsCompressedGZIP = gzip_compress_to_base64_string(tostring( Results)); let ResultsCompressedZLIB = zlib_compress_to_base64_string(tostring(Results)); // Output results to check compressed size print strcat(string_size(Results), ' ', string_size(ResultsCompressedGZIP), ' ', string_size(ResultsCompressedZLIB) ) ``` ## Results ``` print_0 55424 4468 4452 ```