update nach anpassungen clsgetdoc
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Base64Helper.cs" />
|
||||
<Compile Include="clsFileHelper.cs" />
|
||||
<Compile Include="Converter.cs" />
|
||||
<Compile Include="helper.cs" />
|
||||
<Compile Include="NLogHelper.cs" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
27
Helper/clsFileHelper.cs
Normal file
27
Helper/clsFileHelper.cs
Normal 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 "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
ec7cb520f7c8c47b159dc11c8e9944f12c4da763c52c1db8f364329591abda11
|
||||
80e87a2cbcf95b7f9469731d75341530912738380000edebd722b7d3396a4ea7
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user