update nach anpassungen clsgetdoc

This commit is contained in:
Stefan Hutter
2024-06-01 21:43:57 +02:00
parent 511a741857
commit f22627a1a8
571 changed files with 3770600 additions and 117 deletions

27
Helper/clsFileHelper.cs Normal file
View File

@@ -0,0 +1,27 @@
using NLog.LayoutRenderers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Helper
{
public class clsFileHelper
{
public string save_temp_file(string data, string dokumentid, string temppath, string extension)
{
string filename = temppath+ DateTime.Now.ToString("yyyyMMddhhmmss") + "_" + dokumentid + "." + extension;
try
{
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(data));
return filename;
}
catch
{
return "";
}
}
}
}