Example #1
0
 private string SafeWriteBytesToFile(string fileName, string saveDirectory, byte[] bytes)
 {
     //write file to disk
     _localFileProvider.GetSafeFileName(fileName, saveDirectory, out fileName, out string fileNameWithPath);
     _localFileProvider.WriteBytes(fileNameWithPath, bytes);
     return(fileName);
 }