Java XML Base64 Encode Decode urlSafeBase64Decode(String in)

Here you can find the source of urlSafeBase64Decode(String in)

Description

url Safe Base Decode

License

Apache License

Declaration

static byte[] urlSafeBase64Decode(String in) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.DatatypeConverter;

public class Main {
    static byte[] urlSafeBase64Decode(String in) {
        in = in.replace('-', '+');
        in = in.replace('_', '/');
        return DatatypeConverter.parseBase64Binary(in);
    }/*  w ww .java 2 s.  c  om*/
}

Related

  1. toBase10(String base64)
  2. toBase64(byte[] array)
  3. toBase64Encoded(String unencoded)
  4. toBase64String(final byte[] data)
  5. toSafePathBase64(byte[] value)