Base64 Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. helpers. Base64
- com.
public class Base64
Method Summary
Modifier and Type | Method and Description |
---|---|
byte [] |
decodeBase64Local(final byte[] base64Values)
Convert a array of base64 encoded byte in a array of bytes, returning the bytes original values. RFC 2045. Base64 only uses 6 bits, so fits each set of 4 base64 in 3 bytes Base64 | c1 | c2 | c3 | c4 | |7 6 5 4 3 2 1 0:7 6 5 4 3 2 1 0:7 6 5 4 3 2 1 0| Byte | b1 | b2 | b3 | |
byte [] |
encodeBase64Local(byte[] dataValues)
Convert a array of bytes in a array of MIME Base64 values. RFC 2045. |
String |
encodeBase64StringLocal(byte[] dataValues)
Convert a array of bytes in a array of MIME Base64 values. RFC 2045. |
Method Details
decodeBase64Local
public static byte [] decodeBase64Local(final byte[] base64Values)
Convert a array of base64 encoded byte in a array of bytes, returning the bytes original values. RFC 2045.
Base64 only uses 6 bits, so fits each set of 4 base64 in 3 bytes Base64 | c1 | c2 | c3 | c4 | |7 6 5 4 3 2 1 0:7 6 5 4 3 2 1 0:7 6 5 4 3 2 1 0| Byte | b1 | b2 | b3 |
Parameters:
Returns:
Throws:
encodeBase64Local
public static byte [] encodeBase64Local(byte[] dataValues)
Convert a array of bytes in a array of MIME Base64 values. RFC 2045.
Parameters:
Returns:
Throws:
encodeBase64StringLocal
public static String encodeBase64StringLocal(byte[] dataValues)
Convert a array of bytes in a array of MIME Base64 values. RFC 2045.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java