Java XML Base64 Encode Decode decodeBase64(String s)

Here you can find the source of decodeBase64(String s)

Description

* Decode the given base64 String * @param s Holds the base64 encoded bytes

License

Open Source License

Return

The decoded bytes

Declaration

public static byte[] decodeBase64(String s) 

Method Source Code

//package com.java2s;
/*/*from  www  .  j  a  va  2s  . c  o m*/
 * Copyright (c) 2008-2015 Geode Systems LLC
 * This Software is licensed under the Geode Systems RAMADDA License available in the source distribution in the file 
 * ramadda_license.txt. The above copyright notice shall be included in all copies or substantial portions of the Software.
 */

public class Main {
    /**
     *                                                                                                                             * Decode the given base64 String
     *                                                                                                                               * @param s Holds the base64 encoded bytes
     * @return The decoded bytes
     */
    public static byte[] decodeBase64(String s) {
        return javax.xml.bind.DatatypeConverter.parseBase64Binary(s);
    }
}

Related

  1. createBase64EncodedStringFromURL(URL url)
  2. decode(String base64)
  3. decodeBase64(File file)
  4. decodeBase64(String b64data)
  5. decodeBase64(String base64)
  6. decodeBase64(String value)
  7. decompressFromBase64(String message)
  8. encodeBase64(byte[] b)
  9. encodeBase64(byte[] bytes)