
com.moesif.helpers.EncodeUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesif-okhttp-interceptor Show documentation
Show all versions of moesif-okhttp-interceptor Show documentation
Moesif Java OkHttp Interceptor SDK
package com.moesif.helpers;
import java.io.ByteArrayOutputStream;
import java.util.Base64;
public class EncodeUtils {
/**
* Encodes ByteArrayOutputStream to base64
* @param baos The ByteArrayOutputStream object
* @return b64 encoded string of bytearrayoutputstream
*/
public static String BaosToB64Str(ByteArrayOutputStream baos) {
return Base64.getEncoder().encodeToString(baos.toByteArray());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy