Sandeep kumar

Sandeep kumar

  • NA
  • 58
  • 3.9k

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)