Answers for "how to convert pdf file in base64 string c#?"

C#
0

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;
}
Posted by: Guest on May-16-2021

Code answers related to "how to convert pdf file in base64 string c#?"

C# Answers by Framework

Browse Popular Code Answers by Language