Relative Content

Tag Archive for c#.netstringfilebase64

Converting string to PDF file and then encoding file to base64 string .NET C#

I am using a third party API to send documents from a .NET C# application. The documents need to be base64 encoded string of a valid file format (.doc or .pdf or .jpg). The issue I’m having is that I want to send some additional data to this endpoint that is just a string e.g. “message”. I also don’t want to create any files in the directory.