'How to encode the GWT Long value in RPC Request
I am using JMeter to generate random number for load test
Q) How to encode the long value below "DI"? The original value is 200.
7|0|8|http://10.6.3.1:90/portal/|E5514987BAA783F640F3B2046EE770BB|com.portal.shared.Rpc|process|java.lang.String/2004016611|J|60182009111|password|1|2|3|4|3|5|6|5|7|DI|8|
Some solution being posted here but's it been more than a decade ago . Any newer solution?
Solution 1:[1]
The value is base64 encoded. Use com.google.gwt.user.server.Base64Utils.longFromBase64(long) to create a string that represents a given value, or Base64Utils.longFromBase64(String) to read a string and convert it into a long value, to see what it represents.
Solution 2:[2]
After reading the open source code. I managed to find how to encode.
System.out.println("converted value=" + com.google.gwt.lang.LongLib.toBase64(200));
converted value=DI
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Colin Alworth |
| Solution 2 | Banana Tech |
