第一种解码的方式

import base64

strg = data[6]
lens = len(strg)
lenx = lens - (lens % 4 if lens % 4 else 4)
try:
result = base64.decodestring(strg[:lenx])
print(result)
except:
pass



第二种解码的方式
dd = base64.b64decode(strg)
print dd



使用的第一种解码的方式。我发现数据中。少了一个“}”
使用第二种方式的解码。数据是完整的

纠正一下超长的字符串base64解码的问题。可使用第二种的方式


疑问解答QQ群:588402570

关注该公众号:持续更新Jmeter相关内容

base64编码超长的情况下。解码问题

 

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-07-20
  • 2021-10-11
  • 2021-12-31
猜你喜欢
  • 1970-01-01
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-06-27
  • 2021-05-26
  • 2021-07-17
相关资源
相似解决方案