public static String base64Encode(String message) {
    	return message==null ? null : "" + Base64.encode(message.getBytes()).replace("\n", "");
    }
public static void main(String[] args) {
    	String tmp = "{\"actionName\":\"runTask\",\"taskId\":\"1\",\"mode\":\"synchronous\",
\"authPass\":\"talend\",\"authUser\":\"talend@talend.com\"}";
    	System.out.println("Base 64: " + base64Encode(tmp));
    }
}
 
               This allows you to encode the MetaServlet action, runTask, in base64.
               For more information about the parameters and actions available in the
                        MetaServlet, see the Talend Administration Center User Guide.