- Products
- Enterprise
- Resources
- Support
- Pricing
Download Sun.misc.base64encoder — Jar Work
If you are stuck on an extremely old version of Java (pre-Java 8) or working in an environment where Apache libraries are already present, use commons-codec . commons-codec:commons-codec Usage: Base64.encodeBase64String(myBytes); How to Handle Legacy Projects
If you are maintaining an old system and absolutely cannot change the code immediately, you have two options: Use the "Export" Flag (Java 9–11) download sun.misc.base64encoder jar
If you'd like to update your project's build file to include a modern alternative: If you are stuck on an extremely old
String encoded = new sun.misc.BASE64Encoder().encode(myBytes); Use code with caution. download sun.misc.base64encoder jar
java.util.Base64 is significantly faster because it utilizes JVM intrinsics.