Announcements
Hi,
When i tried to called pdfDocument API endpoint
I will get response back, which is like this
%PDF-1.7
%���
And then I tried with my C# code to convert string to bytes :
string responsePdfContent = getSalesInvoicePdf.Content.ReadAsStringAsync().Result;
var bytes = System.Convert.FromBase64String(responsePdfContent); BUT at this line i will get error : The input is not a valid Base-64 string, as it contains a character that is not a base-64 character, more than two fill characters, or an invalid character among the fill characters.
Is there anyone have some sample code in c# or can anyone please help me! :)
Thanks.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156