Hi all
When I use the following code I receive a pdf with two empty pages.
Does anyone have an Idea how to fix this ?
Success = Base64 string - tested it and works
//Get Base64 string
httpResponse.Content.ReadAs(Success);
FinalString := Base64Convert.FromBase64(Success);
Message(Success);
Message(FinalString);
tempBlob.CreateOutStream(FinalOStream);
FinalOStream.WriteText(FinalString);
tempBlob.CreateInStream(FinalInstream);
FileName := 'Test.pdf';
//download pdf file
DownloadFromStream(FinalInstream, '', '', '', FileName);