Java XML Base64 Encode Decode fromBase64(String base64)

Here you can find the source of fromBase64(String base64)

Description

from Base

License

Open Source License

Declaration

public static String fromBase64(String base64) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.charset.StandardCharsets;

import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String fromBase64(String base64) {
        byte[] encodedHelloBytes = DatatypeConverter.parseBase64Binary(base64);
        return new String(encodedHelloBytes, StandardCharsets.UTF_8);
    }/*from   www  .  j  a va2 s.c om*/
}

Related

  1. encodeBase64(byte[] bytes)
  2. encodeBASE64(byte[] data)
  3. encodeBase64(String input)
  4. encodeBase64(String stringValue)
  5. encodeBase64Binary(byte[] data)
  6. fromBase64(String hex)
  7. getBase64(byte[] bytes)
  8. getHashBase64(String origStr, String digestAlgorithm)
  9. readBase64Bytes(String str)