MCPcopy Create free account
hub / github.com/ax1sX/MemShell / main

Method main

SpringMVCMemShell/src/main/java/ClassToBase64.java:12–14  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

10
11public class ClassToBase64 {
12 public static void main(String[] args) throws IllegalAccessException, IOException, InstantiationException {
13 String s = fileToBase64("/xx/classes/TestInterceptor.class");
14 }
15 public static String fileToBase64(String filePath) throws IOException, IllegalAccessException, InstantiationException {
16 File file = new File(filePath);
17 FileInputStream inputFile = new FileInputStream(file);

Callers

nothing calls this directly

Calls 1

fileToBase64Method · 0.95

Tested by

no test coverage detected