我正在尝试解码一个字符串,该字符串使用LZX算法以2 MB的LZX窗口大小(二进制)进行编码,然后转换为base64。

我收到来自Microsoft的Update API(GetUpdateData)的响应以接收此字符串。
根据针对lzx / lz77算法的Microsoft documentationXmlUpdateBlobCompressed字段为:


  使用Lempel-Ziv压缩算法的LZX变体进行压缩。用于压缩此字段的LZX窗口大小为2 MB。


我尝试将字符串解码/解压缩回其原始XML,但没有成功。我尝试了lz_string库(NodeJS / Ruby)和其他一些库,但到目前为止没有成功。

这是我尝试解码/解压缩回原始XML的示例:

TVNDRgAAAACPIwAAAAAAACwAAAAAAAAAAwEBAAEAAAAAAAAAQQAAAAIAAxVIwwAAAAAAAAAAAAAAAAAAYmxvYgCF1k7pgBgAgFuAgI0MIIQ0QRAABDMDNSMAYAAAaW+qrcgkd7l8ck7bM0VOsi0C+61/XVRtf4SU9i2F0gKBAO2Bv7e37Zu22t50m5yTNmlRiEcikSCfz+5ztUnyzQoR9BaupQIpgBYaiaUIHGOuCNSOXBj5SFWJcDqQuSIAmSGAmgMARjDL0O1rqggvgGaQNgADBjP2RgIHw83o+jG9NdKT1j66rC8nipxrKyXpu7a+U12KV1Y/Lp04nt1ciiLplJP1krgxgp/KKfoaQ0WciCcMGSZKrrthho0lCw74DWx/OP//0P8AgAkAzRCAAYMVv36tX53uSzpTWmkzSKRh6FuWLSth3gmmooIhPgvw6IBgurCPR0BC1OiZ6h/SJNAzkD9g7zBSUaQCSIKYnpwqmslQxUKKG4VzCiKUQ1AudsB7tZgSkDIDYpA6Cy9qovD3wqKyYhDWEBosKkikjUYmAgTChsR04bhgcsMYxhqgGCaP44r8qCOMS6Uo4+pAZfJCJtQckVqSHuRH01EOo+QMotF4gRwKnII5hT4HuCG9PqdG9CDqz3edOCh2Ifg6dxz4JOWDDTxCDZJDjTQGlIiLPd9IjxSRwd1oYsTWp08V1Xbyl8oUC8VkExWy0W5SMRLEfwFxPNFgKAHbo2skiI4k7fyS1dagGDRHdoJLDM2XDldoOB3mPQEJoCZ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q1UauvluOoBWXIfFmJLa7U53qJ3QsXw4MbbpRN/Om7hKN68u1udURZuK4TzqgJYAZ3G0LbnNuo8TmDtHO7ZXylns2nfcbjqCarY7FkL2mxWcXVU81a+IZjurno+rOVm4uPLZPVkNAPJSW6Z81ixzyOdwvujjTVBjkefGzZVufr3YAdxtHp+klnd2TjeOwyoLdZgcBu071fhzb+lenvbFc6XpiHn9wl0S49RxMDktEbbS1kO2huG7MBv//SgtEgFtHeNju6ducFUatT7te62cI0y3jqsPmYddFf7telkjleeq+mLHM+dd+M/G2Nbc13BBFdzxObiwJbPxU/kP62Uqq4zN7dY+bS0iKdG3r31Vc4xoV69dAULH3rxr4wYWgd1Mh6YB5vm7AacMYpk2UK6xcuALsrPJC49282vVLVBLY1cZiitzrTmfOnaOcrOV7RxBAAednIjwwNH2ZwCTO9VNxuBQVQPtAW7OQJjq1T4uj6Wavnni22Xj+My2O4YlTsNREWzgCL2Y2Gbb4GZiifMM2gLNyenuXRdU9TSwIw+RDrfuJyhcGxOpnccp5F/l++Qpu72rOJR7mxphiKYABw==


有人成功做到了吗?

最佳答案

正如戴夫(Dave)在评论中所添加的,是响应中存在的cab文件。

我已经保存了cab文件并使用libmspack提取了文件

  cab_file_path = "/Users/kalpesh/playground/xml.cab"
  cab_file = File.open(cab_file_path, "wb")
  # Save Cab file
  cab_file.puts Base64.decode64(xml_blob) # xml_blob is the sample which I have given in description

  # Extract cab file
  blob_xml_path = "/Users/kalpesh/playground/xml_blob.txt"
  cab_decompressor = LibMsPack::CabDecompressor.new
  cab = cab_decompressor.open(cab_file_path)
  cab_decompressor.extract(cab.files, blob_xml_path)

07-26 08:01