Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

encode pdf file to base64 c#

byte[] GetFileContentByName(string id)
{
    var file = Directory.GetFiles("c:	emp", $"{id}.*").FirstOrDefault();
    if(file != null)
       return File.ReadAllBytes(file);    return null;
}
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #encode #pdf #file
ADD COMMENT
Topic
Name
6+9 =