uk.co.mruoc.file.content.Base64Encoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of file-loader Show documentation
Show all versions of file-loader Show documentation
Code library to easily load files and file from the classpath or file system file
package uk.co.mruoc.file.content;
import java.util.Base64;
public class Base64Encoder {
public String encode(String input) {
byte[] bytes = Base64.getEncoder().encode(input.getBytes());
return new String(bytes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy