Friday, 1 November 2019

How To Convert Base64 in Java


//Default Package Name 

//Import Class
import java.util.Base64;

public class decodeBase64
{
  public static void main(String[] paramArrayOfString) {

//Get First Parameter Value only     
String str1 = paramArrayOfString[0];

   //Get Byte of Base64
    byte[] arrayOfByte = Base64.getDecoder().decode(str1);

    String str2 = new String(arrayOfByte);

   
    System.out.println(str1 + " = " + str2);
  }
}


No comments:

Post a Comment

How To: Remove all rows from view object (VO) in OAF & ADF

This is the basic requirement when we are working with oracle OAF. In which we need to removed the all rows from the table. The best use ca...