如何去code基地的JMeter 64格式? [英] How to decode base 64 format in jmeter?
本文介绍了如何去code基地的JMeter 64格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道一个解决方案,以解除code在JMeter的基地64格式字符串?
Does anyone know a solution to decode a base 64 format string in JMeter?
我必须去code中的一个反应,但我不想推倒重来......
I have to decode the a response, but i don't want to reinvent the wheel...
我有我自己写的code(希望不是)?
Do i have to write the code by myself (hope not)?
感谢
推荐答案
我目前的解决办法是:
import org.apache.commons.codec.binary.Base64;
log.info("Decoding base64 format");
String response = "b3JpZ2luYWwgU3RyaW5nIGJlZm9yZSBiYXNlNjQgZW5jb2RpbmcgaW4gSmF2YQ==";
byte[] decoded_response = Base64.decodeBase64(response);
log.info(new String(decoded_response));
哪个基于由 http://javarevisited.blogspot.pt/2012/02/how-to-en$c$c-de$c$c-string-in-java.html 。
编辑:检查德米特里解决方案的更多细节。
Check Dmitri solution for more details.
感谢
这篇关于如何去code基地的JMeter 64格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文