public static byte[] decode(String base64) throws Exception {
  ByteArrayOutputStream out=new ByteArrayOutputStream();
  StringReader in=new StringReader(base64);
  decode(in,out);
  in.close();
  out.flush();
  out.close();
  return out.toByteArray();
}

public static byte [ ] decode ( String base64 ) throws Exception { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; StringReader in = new StringReader ( base64 ) ; decode ( in , out ) ; in . close ( ) ; out . flush ( ) ; out . close ( ) ; return out . toByteArray ( ) ; }
description of the method
