You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
545 B
27 lines
545 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OnDoc.Helper
|
|
{
|
|
public class FileHelper
|
|
{
|
|
public bool SaveBase64ToFile(string Base64String, string filename)
|
|
{
|
|
try
|
|
{
|
|
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(Base64String));
|
|
return true;
|
|
}
|
|
catch
|
|
{
|
|
return false;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|