Esempio n. 1
0
 /// <summary>
 /// Decodes and replaces the Base64 Encoded <see cref="XSLFileType.FileContent"/>.
 /// </summary>
 /// <param name="XSLFile">The XSL File to Decode.</param>
 public static void DecodeFileContent(XSLFileType XSLFile)
 {
     try
     {
         byte[] xslPBytes = System.Convert.FromBase64String(XSLFile.FileContent);
         XSLFile.FileContent = System.Text.Encoding.ASCII.GetString(xslPBytes, 0, xslPBytes.Length);
     }
     catch (Exception ex)
     {
         throw new ApiException(ex.Message, ex);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Decodes and replaces the Base64 Encoded <see cref="XSLFileType.FileContent"/>.
 /// </summary>
 /// <param name="XSLFile">The XSL File to Decode.</param>
 public static void DecodeFileContent(XSLFileType XSLFile)
 {
     try
     {
         byte[] xslPBytes = System.Convert.FromBase64String(XSLFile.FileContent);
         XSLFile.FileContent = System.Text.Encoding.ASCII.GetString(xslPBytes, 0, xslPBytes.Length);
     }
     catch (Exception ex)
     {
         throw new ApiException(ex.Message, ex);
     }
 }