October 22, 2024
Chicago 12, Melborne City, USA
java

Is there way to convert a 38 digit number into a String of length 18 to 20 without any special character?


I have an Use case where i need to encode 38 digit number into a string of length 18 to 20.

Iam using a ByteBuffer with capacity of 16 bytes in java to store two Long values. Then i try to encode it to a string without any special characters. I tried base32 encoding which resulted in string of length 26, But i need a much smaller string for my use case.

Is there any workarounds for this?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video