I want to use the base64 class of Apache code. The class I want to use is maven dependency for org.apache.commons.codec.binary.base64. Which maven dependency I should add in my project to get the maven dependency for org.apache.commons.codec.binary.base64 class?
Apache Base64 class is an utility class developed by Apache Software foundation which can be used for Base64 encoding and decoding of data as per the RFC 2045 standard.
This class can be used to encode and then decode the data such as URL-Safe mode, images and others in Java base applications.
You can use the following maven dependency for using Base64 class in your project:
<dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.9</version> </dependency>
The latest version of this library is:
<dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.14</version> </dependency>