Android Base64 Encode encode(final String str)

Here you can find the source of encode(final String str)

Description

encode

License

Apache License

Declaration

public static byte[] encode(final String str) 

Method Source Code

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

import android.util.Base64;

public class Main {
    public static byte[] encode(final String str) {
        return Base64.encode(str.getBytes(), Base64.DEFAULT);
    }//from   w w w  .  j a v  a 2 s. c  om
}

Related

  1. encodeBase64(String value)
  2. encode(String s)
  3. encode(String source)
  4. encode(String str)
  5. encodedBase64(String currentString)
  6. toBase64(String value)