The function is similar to GetTemplateEx, except that the return template string is converted to BASE64 format.