Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android ecode base64

// Notice The package is android.util.Base64
import android.util.Base64;

// encoding
byte[] data = text.getBytes("UTF-8");
String base64 = Base64.encodeToString(data, Base64.DEFAULT);

// decoding
byte[] data = Base64.decode(base64, Base64.DEFAULT);
String text = new String(data, "UTF-8");
Comment

PREVIOUS NEXT
Code Example
Java :: press enter in robot java 
Java :: @override java example 
Java :: char to ascii java 
Java :: cors spring 
Java :: read stream java 
Java :: how junit test getter and setter 
Java :: number to char java 
Java :: java instanceof 
Java :: java random number generator in range 
Java :: bytearrayoutputstream 
Java :: what is transient in java 
Java :: fixed length array powershell PSv5+ 
Java :: remove duplicate from string 
Java :: java variable declaration 
Java :: override class java 
Java :: java check string contains uppercase character 
Java :: Looping Through Array Elements Java 
Java :: java append to file 
Java :: read file from resources java 
Java :: how to get input of local date type java 
Java :: How to get a context in a recycler view adapter 
Java :: read qr code from image java 
Java :: jcolorchooser in java 
Java :: Java Access ArrayList Elements 
Java :: spigot plugin send message 
Java :: java home 
Java :: final vs static keyword in java 
Java :: how to check number of messages in kafka topic 
Java :: java array of array 
Java :: java print a line seperate by space 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =