Sandeep kumar

Sandeep kumar

  • 2.1k
  • 58
  • 2.3k

How to get filebytes from dt.row["FileName"].ToString()

Mar 2 2021 9:32 AM
File.WriteAllBytes(Path.Combine(
ConfigurationManager.AppSettings.Get("DocumentPath").ToString(), randString + FileExtension), array[]);
 
 
 
i have a datatable which consist file name, from file name i want to know file bytes ,so that i pass a parameter into 
below function.
File.WriteAllBytes(Path.Combine(
ConfigurationManager.AppSettings.Get("DocumentPath").ToString(), randString + FileExtension), ?);
 

Answers (6)