encode pdf file to base64 c#

84

encode pdf file to base64 c# -

byte[] GetFileContentByName(string id)
{
    var file = Directory.GetFiles("c:\\temp", $"{id}.*").FirstOrDefault();
    if(file != null)
       return File.ReadAllBytes(file);    return null;
}

Comments

Submit
0 Comments