Show PDF inside application from binary content from service
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.
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.
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.