Android Base64 Encode generateBase64String(String inString)

Here you can find the source of generateBase64String(String inString)

Description

generate Base String

License

Open Source License

Declaration

public static String generateBase64String(String inString)
            throws UnsupportedEncodingException 

Method Source Code

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

import android.util.Base64;
import java.io.UnsupportedEncodingException;

public class Main {
    public static String generateBase64String(String inString)
            throws UnsupportedEncodingException {
        byte[] byteTransform = inString.getBytes("UTF-8");
        return Base64.encodeToString(byteTransform, Base64.NO_WRAP);
    }//from  ww  w. j  a  va 2  s. c o m
}

Related

  1. to64(String a)
  2. toBase64(byte[] barray)
  3. encodeBase64(byte abyte0[])
  4. encodeBase64(String input)
  5. encryptToBase64Text(String key, String src)
  6. ImageBase64Decode(String base64_str)
  7. longKeyId2Base64String(long keyId)
  8. convertToBase64(byte[] in)
  9. base64StringKeyId2Long(String keyId)