Hi experts,
The task is to create a web service that creates a report as a pdf file and returns the file.
This must be done in NAV 2015.
I have made a web service that saves the wanted report as pdf in a blob field in the table "Temp Blob".
How do I return the blob field to the api?
Best regards,
Morten
0
Answers
In newer versions, the "Base64 Convert" codeunit implements "ToBase64" from InStream as such: I have a feeling with small adjustments, this could work for NAV 2015 as well
Thank you very much for your reply.
I have implemented something like this, but before it worked, we decided to have NAV createing the pdf file in Windows and then return the filename to the C# program. Then the C# program can get the pdf file directly from Windows.
Thank you for your time.
Best regards,
Morten