Show PDF inside application from binary content from service

0
Hi, I have binary data coming from REST Webservice. Currently, I am saving that data inside a entity as string. I want to show the PDF inside my mendix page and the pdf should contain the the entity data and it should be converted from binary to show as perfect pdf styled thing. How can I do this. Thanks in advance.
asked
2 answers
0

In the community commons you have a StringToFile action. This will transform the string to a filedocument. From there you can use the filedocumentviewer to show the PDF inside your application. Do make sure that you save the filedocument with the right extension.

Regards,

Ronald

answered
0

If you store binary data as string, I would advise to Base64Encode the binary data as String. Otherwise, you might experience issues using the data.

answered